Forum LAMS for Tech-Heads - General Forum: mysql check failed.


 
You may request notification for mysql check failed..
Search: 

1: mysql check failed.
07/18/09 02:08 AM
[ Reply | Forward ]
when I type ./install-lams.sh,the screen says as follow:
[root@localhost lams-unix-installer-2.3]# ./install-lams.sh
JDK_DIR is valid
Communications link failure due to underlying exception:
BEGIN NESTED EXCEPTION
java.net.ConnectException
MESSAGE: Connection refused
STACKTRACE:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365
at java.net.Socket.<init>(Socket.java:207)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.<init>(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at checkmysql.execute(Unknown Source)
at checkmysql.main(Unknown Source)
END NESTED EXCEPTION
Last packet sent to the server was 0 ms ago.
MySql check failed. Check that your MYSQL_HOST variable in lams.properties points to a MySql 5.x installation
Install Failed. MySql check did not pass. Please check that your DB_ROOT_PASSWORD in lams.properties is set to the root password of your MySql 5.x server
MYSQL_HOST=localhost in lams.properties,isn't it right?
what's wrong?
thanks

Posted by shuai yuan

2: Re: mysql check failed.
In response to 1 07/19/09 05:26 PM
[ Reply | Forward ]
Hi Shuai Yuan,

A few things to check.

Is your database root password correct in lams.properties?
Is the MYSQL_HOST in lams.properties correct?
Is mysql running?
Is mysql running on port 3306?
Is port 3306 being blocked by your firewall?

Luke

Posted by Luke Foxton

3: Re: Re: mysql check failed.
In response to 2 07/19/09 06:41 PM
[ Reply | Forward ]
Hi Luke,
The problem is sloved,thank you very much.


Shuai Yuan

Posted by shuai yuan

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum