MySQL Database Connection Faulted

After a couple days of working just fine, our database connection faulted with the error below. Any help is greatly appreciated.

** BEGIN NESTED EXCEPTION ** MESSAGE: Connection refused STACKTRACE: Connection refused at Method) at at at at at at at<init>( at<init>( at com.mysql.jdbc.StandardSocketFactory.connect( at com.mysql.jdbc.MysqlIO.<init>( at com.mysql.jdbc.Connection.createNewIO( at com.mysql.jdbc.Connection.<init>( at com.mysql.jdbc.NonRegisteringDriver.connect( at org.apache.commons.dbcp.DriverConnectionFactory.createConnection( at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory( at org.apache.commons.dbcp.BasicDataSource.createDataSource( at org.apache.commons.dbcp.BasicDataSource.getConnection( at com.inductiveautomation.ignition.gateway.datasource.DatasourceImpl.getConnectionInternal( at com.inductiveautomation.ignition.gateway.datasource.DatasourceImpl.runTest( at com.inductiveautomation.ignition.gateway.datasource.DatasourceManagerImpl$ at ** END NESTED EXCEPTION **

In the database connections, I changed “localhost” to the IP address of the server and the connection works again. We would prefer to use “localhost”. Any suggestions?

Ignition: 7.3.1
MySQL: 5.1
OS: Ubuntu 10.04

We needed to allow external connections to the MySQL database, so we changed changed bind-address in my.conf from to the IP address of the server. Is there a way to allow external connections AND to use ‘localhost’ in the Ignition database connection configuration?

My hazy recollection of MySql security was that you could tie down users to specific ip addresses. I would think that if you add localhost as an address in your security list, Ignition would be able to use that.

Sorry I don’t have details, maybe one of the MySQL gurus can help out.

Try commenting out the bind-address line in my.cnf and then restart the MySQL server. It will then bind to localhost automatically, yet external connections can still be used. You can then also use localhost in the MySQL connection parameters within Ignition.

That fixed it. Thanks!