Can't connect to local MySQL server through socket '/var/lib/mysql'
在配置 sphinx報這個錯
ERROR: index 'test1': sql_connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (DSN=mysql://root:***@localhost:3306/test).
解決辦法
看哈 mysql是否正常執行
得知配置檔案my.conf中mysql.sock 路徑不同造成的
可以將路徑mysql.sock移動到var/lib/mysql/mysql.sock
重啟服務即可
相關推薦
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ 解決
bsp 文件讀取 my.cnf dir spa min pre 啟動 style mysql 改變 basedir 目錄,啟動後客戶端登陸出現 Can’t connect to local MySQL server through socket ‘/var/lib/mys
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ 解決
mysql 改變 basedir 目錄,啟動後客戶端登陸出現 Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ 問題,解決方式如下: /etc/my.cnf &nbs
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysqld.sock'
先檢視 /etc/rc.d/init.d/mysqld status 看看m y s q l 是否已經啟動. 另外看看是不是許可權問題. ———————————————————————————— [[email protected] beinan]#chown -R mysql:mysql /var
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
如題所示,在Linux系統中啟動mysql報錯了: 能啟動mysql,但登入不了 網上存在各種各樣的方法和系統提示的最終還是沒有解決我的問題,因為在我的那個系統找不到所說的檔案 於是乎,乾脆殺掉程序試試: 然後重啟mysql 解決
Can't connect to local MySQL server through socket '/var/lib/mysql'
在配置 sphinx報這個錯 ERROR: index 'test1': sql_connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (D
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (
某一次我可能沒有正常關閉Mysql就直接讓機器關機了,造成了MySQL下次都打不來了。 先檢視程序 ps -A | grep -i mysql 如果Mysql程序開啟了 就把這個程序kill -9 ,然後再啟動試試。 但我的mysql程序就是沒有啟動起來
mac mysql啟動不了 Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2)
官方直接下載的安裝包安裝後會出現一些問題,所以建議用工具下載安裝 mac的mysql意外無法正常啟動。 sudo mysql.server start Password: Starting MySQL .. ERROR! The server qu
MYSQL啟動異常:Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2) "
一次異常關機之後,再次啟動mysql服務,報出異常Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.s
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
今天在linux裡安裝mysql,執行時遇到這樣的錯誤 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ 上網
MySQL連線報錯:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
MySQL連線報錯:Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111) 報錯原因
connection to dat Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[[email protected] etc]# tail -f /var/log/zabbix_server.log 1267:20130722:195451.493 [Z3001] connection to database 'zabbix' failed: [2002] Can't co
Linux登入mysql 時Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
在登入Linux上,用mysql -uroot -proot 登入時出現了Warning: Using a password on the command line interface can be insecure. ERROR 2002 (HY000):
php連線mysql資料庫Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock
在部署一個阿里雲web環境 ,先是安裝了阿里雲提供的NMP環境。導致了程式的一些php指令碼無法正常執行。於是有用yum安裝了一個php。但是在執行指令碼時。會報 Can't connect to local MySQL server through socket /var
[ 轉載 ] Centos 安裝mysql後啟動失敗 出現 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
details .sh fail oot The trac mysql csdn mks MySQL Daemon failed to start Mysql出問題一定要學會查看log https://blog.csdn.net/shuai825644975/arti
Linux上mysql登陸錯誤解決辦法ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 解決方法:1:首先確認你在root許可權下 [[email p
centos下mysql問題記錄--ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/
一、關於雲主機的mysql最近一次雲主機的伺服器由於被攻擊便打算重灌一邊mysql,徹底刪除相關檔案後重新安裝,沒想到怎麼裝都會出問題。再啟動的時候總是出現ERROR 2002 (HY000): Can’t connect to local MySQL server thro
連接Mysql提示Can’t connect to local MySQL server through socket的解決方法
127.0.0.1 方式 mic div conn 三種 問題 ati my.cnf 轉:http://aiezu.com/article/mysql_cant_connect_through_socket.html 有時候,當我們使用“mysql”、“mysqladmin
Can't connect to local MySQL server through socket '/tmp/mysql.sock'
for iat 5.6 type span color str -s roo macdembp:~ mac$ netstat -xl | grep mysql e7861942257b0691 stream 0 0 e78619422ab30a91
啟動mysql遇到問題Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
是否 timeout 包括 ets 遇到 ini tmp 服務器 3.2 在mysql的啟動過程中有時會遇到下述錯誤 Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2) 請問
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
tmp 改變權限 author mes 修改 body 服務器 auth line [root@localhost bin]# ./mysql -pEnter password: ERROR 2002 (HY000): Can‘t connect to local MyS