+ -
当前位置:首页 → 问答吧 → Mysql怎麼用不了

Mysql怎麼用不了

时间:2010-07-13

来源:互联网

本帖最后由 gates1412 于 2010-07-13 12:19 编辑

我用VB虛擬的solaris10
從sunfreeware下的 pkgadd安裝的,
但是進入mysql的時候提示Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
網上說的解決辦法是 改 ect/my.cnf
但是我這個下面沒有這個文件。
自己建立了以後寫入
[mysqld]
datadir=/var/lib/mysql
socket=/tmp/mysql.sock
[client]
socket=/tmp/mysql.sock

還是提示Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

用這個設置 也不行
# ./mysqladmin -u root -p '123456'
Enter password:
./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!
# ^C
# ./mysqladmin -u root -p '123456'
Enter password:
./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!


哪位大大告訴我該怎麼弄

作者: gates1412   发布时间: 2010-07-13

发到mysql版问问

作者: easybegin   发布时间: 2010-07-13

热门下载

更多