linux mysql'localhost'失败了 [英] linux mysql 'localhost' failed

查看:125
本文介绍了linux mysql'localhost'失败了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RH 9.0

用户mysql

命令/ usr / sbin / mysqld

正在加载mysql在开机。当我检查

时运行的进程是< ps -aux>


但是:

[craig @ localhost mysql] $ ./bin/mysqladmin version

.. / bin / mysqladmin:在''localhost'连接到服务器'失败

错误:''无法通过套接字连接到本地MySQL服务器''/ tmp / mysql.sock''(2 )''

检查mysqld是否正在运行并且套接字:''/ tmp / mysql.sock''存在!

告诉我它不是运行??

解决方案

./ bin / mysqladmin版本

../bin/mysqladmin:连接到服务器' 'localhost''失败

错误:''无法通过socket连接到本地MySQL服务器''/ tmp / mysql.sock''(2)''

检查mysqld是否正在运行并且套接字:''/ tmp / mysql.sock''存在!

告诉我它没有运行?

craig写道:

[craig @ localhost mysql]

./ bin / mysqladmin version
./bin/mysqladmin:在''localhost'连接到服务器'失败
错误:''无法连接到本地MySQL服务器通过socket''/ tmp / mysql.sock''(2)''
检查mysqld是否正在运行,并且socket:''/ tmp / mysql.sock''存在!

告诉我它没有运行??




我认为它正在运行,但客户端尝试连接到不同的插座

文件比服务器使用的文件。更改服务器文件或

为客户端更改文件。或者有什么东西删除了套接字文件。阅读

更多来自:
http://www.mysql.com/doc/en/Can_not_...to_server.html


RH 9.0

user mysql
command /usr/sbin/mysqld

mysql is being loaded at boot. the previous is listed when I check
what process are running with < ps -aux >

however:
[craig@localhost mysql]$ ./bin/mysqladmin version
../bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??

解决方案

./bin/mysqladmin version
../bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??


craig wrote:

[craig@localhost mysql]


./bin/mysqladmin version
./bin/mysqladmin: connect to server at ''localhost'' failed
error: ''Can''t connect to local MySQL server through socket ''/tmp/mysql.sock'' (2)''
Check that mysqld is running and that the socket: ''/tmp/mysql.sock'' exists!
is telling me that it isn''t running ??



I think it is running, but clients try to connect to different socket
file than what the server is using. Either change file for server or
change it for clients. Or something has deleted the socket file. Read
more from:

http://www.mysql.com/doc/en/Can_not_...to_server.html


这篇关于linux mysql'localhost'失败了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆