Node-red mysql node credential setting from another function node/ui text field

Hi,
I am using node red mysql node to connect with my database. Is there any process to push the credentials to the mysql node from another function node instead of opening the mysql node and set up the credentials?

Thank you.