Date: Thu, 14 Aug 2003 12:57:03 +0200 From: Maria Dolores Moral <yoyes@dif.um.es> To: freebsd-net@freebsd.org Subject: Something like my.cnf Message-ID: <200308141257.03124.yoyes@dif.um.es>
next in thread | raw e-mail | index | archive | help
I am working with java and mysql on FreeBSD.
I obtain the following exception:
java.sql.SQLException: Server configuration denies access to data source
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:399)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1562)
at com.mysql.jdbc.Connection.<init>(Connection.java:491)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
at java.sql.DriverManager.getConnection(DriverManager.java:450)
at java.sql.DriverManager.getConnection(DriverManager.java:130)
at Server.obtainPK(Server.java:44)
at Server.main(Server.java:145)
For this code:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","caracola");
Someone has suggested me to configure something else, something like my.cnf,
but I have not found it.
Somebody Know a similar archive and how I must configure it.
If anybody have this file and could send me ;-), I would be very grateful.
Your faithfully
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308141257.03124.yoyes>
