Code: Select all
<ConnectionString>jdbc:mysql://----------------.com:3306/GameDB</ConnectionString>
I create the other, LoginDBManager in code, pointing to a DB on a totally different server (we share login between our game and an existing website):
Code: Select all
jdbc:mysql://--------------.com:3306/LoginDB
When I do:
Code: Select all
GameDBManager.executeQuery("select count(*) from users");
I get an error:
14:51:15.836 - [ SEVERE ] > DbManager error during query/result creation: select count(*) from users
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'LoginDB.users' doesn't exist
So in summary, GameDBManager is running queries against LoginDB! How is this happening - is DbManager actually a singleton or something like that?