JavaShuo
欄目
標籤
ubuntu解決mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var的問題
時間 2021-01-08
標籤
ubuntu
mysql
欄目
Ubuntu
简体版
原文
原文鏈接
1. 打開 /etc/mysql/my.cnf 文件 看到下列路徑 2. 打開第二個路徑下的mysqld.cnf 文件:vim /etc/mysql/mysql.conf.d/mysqld.cnf,可以看到mysql.sock 的位置 複製下來 3. 打開 vim /etc/my.cnf 文件, 把圖中兩個路徑變爲上圖的路徑,保存就可以了,這樣就能找到sock文件的所在了
>>阅读原文<<
相關文章
1.
ERROR 2002 (HY000): Cant connect to local MySQL server through socket的解決方法
2.
解決ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
3.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (
4.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
5.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
6.
Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mys
7.
zabbix ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var
8.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘
9.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/mysql/mysql.sock'
10.
解決ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
更多相關文章...
•
Redis悲觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
Redis樂觀鎖解決高併發搶紅包的問題
-
紅包項目實戰
•
漫談MySQL的鎖機制
•
PHP Ajax 跨域問題最佳解決方案
相關標籤/搜索
問題解決
解決問題
問題&解決
server&mysql
mysql+socket
ubuntu+mysql
MySQL問題
var
hy000
err
系統網絡
Ubuntu
MySQL
MySQL教程
NoSQL教程
Spring教程
mysql
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
js中 charCodeAt
2.
Android中通過ViewHelper.setTranslationY實現View移動控制(NineOldAndroids開源項目)
3.
【Android】日常記錄:BottomNavigationView自定義樣式,修改點擊後圖片
4.
maya 文件檢查 ui和數據分離 (一)
5.
eclipse 修改項目的jdk版本
6.
Android InputMethod設置
7.
Simulink中Bus Selector出現很多? ? ?
8.
【Openfire筆記】啓動Mac版Openfire時提示「系統偏好設置錯誤」
9.
AutoPLP在偏好標籤中的生產與應用
10.
數據庫關閉的四種方式
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
ERROR 2002 (HY000): Cant connect to local MySQL server through socket的解決方法
2.
解決ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
3.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (
4.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
5.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
6.
Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mys
7.
zabbix ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var
8.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘
9.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/mysql/mysql.sock'
10.
解決ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
>>更多相關文章<<