JavaShuo
欄目
標籤
MySql 5.7 報錯ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
時間 2021-01-10
標籤
Mysql 報錯
數據庫
mysql
socket
欄目
MySQL
简体版
原文
原文鏈接
報錯如下: 報錯的原因:MySQL-client將sock文件放在/tmp目錄,而MySql-server端將其放在自己指定/mysql目錄。所以我們只需要創建一個軟鏈接,將開啓mysqld生成的 mysql.sock鏈接到 /tmp/mysql.sock 解決方法 [[email protected] ~]# ln -s /usr/local/mysql/mysql.sock /tmp/mysq
>>阅读原文<<
相關文章
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 '/usr/local/mysql/mysql.sock'
3.
ERROR 2002 (HY000): Can't connect to local MySQL錯誤
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 '/tmp/mysql.sock' (2)
6.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (
7.
啓動mysql報錯:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mys
8.
mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
9.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
10.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
更多相關文章...
•
MySQL 5.7的新特性(新功能)
-
MySQL教程
•
Docker 安裝 MySQL
-
Docker教程
•
漫談MySQL的鎖機制
•
Docker容器實戰(一) - 封神Server端技術
相關標籤/搜索
mysql.5.7
5.7+mysql
server&mysql
MySQL報錯
mysql+socket
hy000
err
local
mysql
系統網絡
MySQL
SQL
MySQL教程
PHP 7 新特性
Thymeleaf 教程
mysql
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
NLP《詞彙表示方法(六)ELMO》
2.
必看!RDS 數據庫入門一本通(附網盤鏈接)
3.
阿里雲1C2G虛擬機【99/年】羊毛黨集合啦!
4.
10秒鐘的Cat 6A網線認證儀_DSX2-5000 CH
5.
074《從零開始學Python網絡爬蟲》小記
6.
實例12--會動的地圖
7.
聽薦 | 「談笑風聲」,一次投資圈的嘗試
8.
阿里技術官手寫800多頁PDF總結《精通Java Web整合開發》
9.
設計模式之☞狀態模式實戰
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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 '/usr/local/mysql/mysql.sock'
3.
ERROR 2002 (HY000): Can't connect to local MySQL錯誤
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 '/tmp/mysql.sock' (2)
6.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (
7.
啓動mysql報錯:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mys
8.
mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
9.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
10.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
>>更多相關文章<<