String connectionDriver = "org.gjt.mm.mysql.Driver";
try {
Class.forName(connectionDriver); // there exc
// Enable logging
Connection connection = (Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/jabber",
"root", "root");
connection.close();
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
this code throw exception/ what does the bug?
Manish Pandit - 08 Jul 2007 05:24 GMT
On Jul 7, 1:22 pm, "alex.kor...@gmail.com" <alex.kor...@gmail.com>
wrote:
> String connectionDriver = "org.gjt.mm.mysql.Driver";
>
[quoted text clipped - 15 lines]
>
> this code throw exception/ what does the bug?
What is the exception message and trace?
Are you able to log into local mysql using root/root via the mysql
command line client?
Are you sure the mysql server is running on localhost:3306?
-cheers,
Manish