安装后,可以启动mysql_safe,但是当启动mysql的时候总是说
can't connect to local mysql server through socket '/tmp/mysql.sock'(2)
这是怎么回事阿?不过在安装的时候说找不到‘hostname',于是我就用了--force参数安装,但是之后不知道怎么办了? ,而我在shell下输入‘hostname'是可以看到我的主机名的。
运行mysql_install_db后出现这样的
Neither host 'blueDebian' and 'localhost' could not bu looked up with ./bin/resolveip
Please config the 'hostname' command to return a correct hostname.
(注:blueDebian 是我安装的时候写的主机名)
我也遇到过你那样的问题,而且不只一次
我的是因为设置了root密码,但是启动的时候我没有输入密码
我的系统是,redhat linux 9 安装时候没有安装服务器的一些东西
我去mysql官方网站下载的4。1。7原码包安装的
我输入
/usr/local/mysql/bin/mysql start
can't connect to local mysql server through socket '/tmp/mysql.sock'(2)
没有用
以后输入
/usr/local/mysql/bin/mysql -u root -p
提示密码,就行了
[quote:a99b48cf99="stustar"]安装后,可以启动mysql_safe,但是当启动mysql的时候总是说
can't connect to local mysql server through socket '/tmp/mysql.sock'(2)
这是怎么回事阿?不过在安装的时候说找不到‘hostname',于是我就用了--force参数安装,但是之后不知道怎么办了? ,而我在shell下输入‘hostname'是可以看到我的主机名的。 [/quote]