8 messages in com.mysql.lists.javaRe: JDBC driver setting
FromSent OnAttachments
Mike Smith22 Jun 2001 10:57 
Neelesh23 Jun 2001 05:32 
Mike Smith25 Jun 2001 08:04 
Igor Fedulov25 Jun 2001 09:30 
mmat...@thematthews.org25 Jun 2001 11:10 
Igor Fedulov25 Jun 2001 11:34 
Dirk Hillbrecht25 Jun 2001 11:47 
Piero Tintori26 Jun 2001 09:11 
Subject:Re: JDBC driver setting
From:Mike Smith (mi@thinkingarts.com)
Date:06/25/2001 08:04:24 AM
List:com.mysql.lists.java

I got the error:

"Server configuration denies access to data source".

when moving a jdbc app (that uses "localhost" as its host name) from Windows to Linux (Redhat 6.2).

The solution was:

1. Create a new mysql user whose host is: localhots.localdomain 2. Reload the user privileges information, for example by restarting mysql. 3. Change the java connection code along the following lines: Conn = DriverManager.getConnection( "jdbc:mysql://localhost.localdomain/my_db?user=my_new_user&password=my_new_user_password");

4. Compile and run the new code.

Mike

PS It was Mark Mathew who suggested adding localhost.localdomain to the network permissions