Error “Failed to establish a database connection. Check connection string, username and password

Viewed 253

I have used IP-Address, google script still gives "failed to establish a connection, invalid connection string, username or password", I have cross-checked data, and mysql port..everything is ok.. but still problem remains. HELP

2 Answers

The workaround appears to be adding ?useSSL=false to the URL:

var dbUrl = "jdbc:mysql://" + IP + ":3306/" + DBNAME + "?useSSL=false";

It is working for me that way now. I am not using Google cloud mysql but another third party mysql.

Related