Cannot connect Coldfusion 9 to MySql 5 in Apache (Ubuntu)
When trying to verify my datasource int he coldfusion admin panel I get the following error:
Connection verification failed for data source: dsnallcars
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
The root cause was that: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
I can serve phpMyAdmin and play around with the tables in there so I know Apache and MySql are working. I've got the coldfusion administrator and also a normal coldfusion error serving this message:
| The following information is meant for the website developer for debugging purposes. | |||
| Error Occurred While Processing Request | |||
| |||
So I know that's working as well. My settings in the administrator are:
JDBC URL: jdbc:mysql://localhost:3306/allcars
Driver class: com.mysql.jdbc.Driver
I know the user name and password are correct, as I use them in phpMyAdmin.
I've got the mysql-connector-java-5.1.12.bin.jar file pasted into /opt/coldfusion9/wwwroot/WEB-INF/lib
I'm at a complete loss as to what to do next. Anyone have any ideas? I can provide the stack trace from the error if it helps or any other info if needs be.