|

楼主 |
发表于 2004-2-16 18:19:27
|
显示全部楼层
到国外论坛看了看,发现这是一个mysqld的bug,是在为root设置密码后造成的,解决方法如下:
I know it'll be a little late for this but instead of using the 'root' user in the mysqld init script you can use any other user wich is not in the database just think of one
You can replace the line
if [ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]; then
and
if !([ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]); then
to:
if [ -n "`/usr/bin/mysqladmin ping -u mysqld 2> /dev/null`" ]; then
and
if !([ -n "`/usr/bin/mysqladmin ping -u mysqld 2> /dev/null`" ]); then
in the /etc/rc.d/init.d/mysqld file
This works for me!! |
|