|
Maybe you can try to change the class driver for this one and see whether it can solve the problem:
Class.forName("org.gjt.mm.mysql.Driver");
If still doesn't work, you can try to set the jdbc using the ip address instead of localhost and see whether it works or not.
|