miguelvmonroy
New Member
I am trying to connect to a mysql server that I have in my GoDaddy account. This is what I am trying:\[code\]public String JDBC_DRIVER = "com.mysql.jdbc.Driver";public String username = "MYUSERNAME",password = "MYPASSWORD";static String dbname = "jdbc:mysql://50.63.105.22//fanteziborsa.db.9134989.hostedresource.com";\[/code\]also:\[code\]static String dbname = "jdbc:mysql://fanteziborsa.db.9134989.hostedresource.com";\[/code\]The code should be fine, my question is what should I type in dbname? In Godaddy I have a code snippet for php, which is:\[code\]$hostname = "fanteziborsa.db.9134989.hostedresource.com";$username = "MYUSERNAME";$dbname = "fanteziborsa";mysql_connect($hostname, $username, $password)\[/code\]But this does not work for java. When I open phpmyadmin for my mysql I see:\[code\]Server: 50.63.105.22 via TCP/IPUser: [email protected]\[/code\]So, how should I connect to this database? When I debug I see:Connected to the target VM, address: '127.0.0.1:55287', transport: 'socket'Thank you.