From owner-freebsd-net@FreeBSD.ORG Thu Aug 14 03:39:55 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12FFE37B401 for ; Thu, 14 Aug 2003 03:39:55 -0700 (PDT) Received: from unimur.um.es (unimur.um.es [155.54.1.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED79A43FCB for ; Thu, 14 Aug 2003 03:39:52 -0700 (PDT) (envelope-from yoyes@dif.um.es) Received: from aries.dif.um.es (aries.dif.um.es [155.54.210.253]) by unimur.um.es (8.9.1b+Sun/8.9.1) with ESMTP id LAA22805 for ; Thu, 14 Aug 2003 11:53:11 +0200 (MEST) Received: from localhost (gemela.dif.um.es [155.54.210.45]) by aries.dif.um.es (Postfix) with ESMTP id 1BA2E14426 for ; Thu, 14 Aug 2003 11:42:17 +0200 (MET DST) Content-Type: text/plain; charset="us-ascii" From: Maria Dolores Moral To: freebsd-net@freebsd.org Date: Thu, 14 Aug 2003 12:57:03 +0200 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308141257.03124.yoyes@dif.um.es> Subject: Something like my.cnf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2003 10:39:55 -0000 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.(Connection.java:491) at=20 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","ca= racola"); Someone has suggested me to configure something else, something like my.c= nf,=20 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= =2E Your faithfully