I want to switch between two MySQL databases

Please help me.


I have a connection with MySQL in ExternalDB.

There are two MySQL databases, using "DatabaseConnection_SetConnectionStringForSession"

I am trying to dynamically switch the connection destination.


Connection settings in ServiceCenter will be performed for two databases, and Success will be returned for them.

However, when I try to switch the connection destination using the above Action, the following error occurs.


Authentication to host'servername1' for user'username1' using method'mysql_native_password' failed with message: Unknown database'Test1'


ConnectionString has set the following.

"Server=servername1;Port=3306;Database=Test1;Uid=username1;Pwd=***"


Server is on AWS.


What can I do to switch the connection destination?

I am in trouble so can anyone give me a solution?

If it is not resolved, development cannot proceed.