java - No database selected GAE -


I'm having fun cloud SQL and I keep this error "not selected a database" when I put my website into production.

The line "USE mydb" has the dump uploaded to the cloud, I have a DB call for "query mydb" for any query.

Anyone know why? Or how to fix it

  java.sql.SQLException: com.mysql.jdbc.SQLError.createSQLException (SQLError.java:1074) selected com.mysql.jdbc.MysqlIO no database . Com.mysql.jdbc.MysqlIO.checkErrorPacket (MysqlIO.java:4028) com.mysql.jdbc.MysqlIO.sendCommand (MysqlIO.java.24 9) checkErrorPacket (MySqlIO.java:4096) on com.mysql.jdbc.MysqlIO on on com.mysql.jdbc.PreparedStatement.executeInternal on Com.mysql.jdbc.ConnectionImpl.execSQL (com.mysqlio.java desk659) Stetet prepared SQL Direct Direct (MysqlIO.java desk65) on com.mysql.jdbc. Aksakyuetaktioti (prepared Statementkjawa 2007313)  

either as part of the database Set in Jdbc connection string, such as jdbc: google: mysql: // your-project-id: your-instance-name / YOUR_DATABASE_NAME , or switch to it. As you have said, you can not use the USE db syntax through JDBC.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -