Griffin
05-27-2004, 12:27 PM
Hi,
Could anyone tell me if accessing the mysql databases remotely is allowed? In other words, can I only use localhost as the host? Or can I use my domain name?
Basically, I am trying to write a Java application that uses the jdbc drivers to talk to MySQL. I want to be able to hit my databases from this application. I am trying this, but it isn't working:
myCon = DriverManager.getConnection("jdbc:mysql://www.swstory.com/swstory_main","swstory","password");
So, www.swstory.com is the host, swstory_main is the db, swstory is the username, and then of course the password.
Am I doing this wrong or is only localhost allowed?
Thanks,
-Griffin
Could anyone tell me if accessing the mysql databases remotely is allowed? In other words, can I only use localhost as the host? Or can I use my domain name?
Basically, I am trying to write a Java application that uses the jdbc drivers to talk to MySQL. I want to be able to hit my databases from this application. I am trying this, but it isn't working:
myCon = DriverManager.getConnection("jdbc:mysql://www.swstory.com/swstory_main","swstory","password");
So, www.swstory.com is the host, swstory_main is the db, swstory is the username, and then of course the password.
Am I doing this wrong or is only localhost allowed?
Thanks,
-Griffin