Question
CFMX 6.1 and MySQL 5.0.27 JDBC issues
Hi, I am currently trying to get CFMX 6.1 to talk to MySQL
5.0.27 on Redhat 3.0. I was able to get it working on our
development environment using SuSE, but not on our live servers.
We have been using MySQL 4.1.15 with JDBC 5.0.4 for awhile now with no problems, as long as we use this connections string for backward compatibility with our MySQL 4 scripts:
jdbc:mysql://xxx.xxx.xxx.xxx:3306/mydb?noDatetimeStringSync=true&zeroDateTimeBehavior=convertToNull&dumpMetadataOnColumnNotFound=true&jdbcCompliantTruncation=false&autoReconnect=true
But as soon as I try switching to 5.0.27, CF gives me the following message (I tried this with and without a password and using an ip and the % wildcard in mysql.users):
Attempted reconnect 3 times. Giving up.
Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)'.
** BEGIN NESTED EXCEPTION **
java.sql.SQLException
MESSAGE: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)
STACKTRACE:
java.sql.SQLException: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:812)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3269)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1182)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2818)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:559)
at coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner.java:64)
at java.lang.Thread.run(Thread.java:534)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.
CF and MysQL are running on separate boxes. I was also able to communicate to MySQL using Query Browser and Administrator from a remote location.
Is there maybe something wrong with my connection string or is it something else? I want to try testing this with perl or php, but i am too tired at the moment. Thanks for any insight you can give me.
We have been using MySQL 4.1.15 with JDBC 5.0.4 for awhile now with no problems, as long as we use this connections string for backward compatibility with our MySQL 4 scripts:
jdbc:mysql://xxx.xxx.xxx.xxx:3306/mydb?noDatetimeStringSync=true&zeroDateTimeBehavior=convertToNull&dumpMetadataOnColumnNotFound=true&jdbcCompliantTruncation=false&autoReconnect=true
But as soon as I try switching to 5.0.27, CF gives me the following message (I tried this with and without a password and using an ip and the % wildcard in mysql.users):
Attempted reconnect 3 times. Giving up.
Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)'.
** BEGIN NESTED EXCEPTION **
java.sql.SQLException
MESSAGE: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)
STACKTRACE:
java.sql.SQLException: Access denied for user 'anybodycf'@'xxx.xxx.xxx.xxx' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:812)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3269)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1182)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2818)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:559)
at coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner.java:64)
at java.lang.Thread.run(Thread.java:534)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.
CF and MysQL are running on separate boxes. I was also able to communicate to MySQL using Query Browser and Administrator from a remote location.
Is there maybe something wrong with my connection string or is it something else? I want to try testing this with perl or php, but i am too tired at the moment. Thanks for any insight you can give me.