Re: MySQL?

"J.P. Pasnak" <[email protected]> Sun, 24 Apr 2005 18:19:25 -0600 (CST)
Newsgroups gmane.linux.mandrake.cooker.amd64
Message-ID <[email protected]>
Marc Lijour said:
>  I upgraded to the LE2005 DVD MySQL-4.1.
> My Java application cannot connect anymore to my database. The most
> curious is
> that I have PHP application which is not affected by that.
> I can still connect thru /usr/bin/mysql.
>
> However the Java Driver sends this message:
> Cannot connect to MySQL server on localhost:3306. Is there a MySQL server
> running on the machine/port you are trying to connect to?
> (java.net.ConnectException)SQLState: 08S01VendorError: 0
>

With the latest RPMs, by default MySQL does not allow network connections.
 Edit '/etc/sysconfig/mysqld' and comment out the line:
MYSQLD_OPTIONS="--skip-networking"

Then restart mysqld

-- 
Live fast, die young,
You're sucking up my bandwidth.

J.P. Pasnak, CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca