解決Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "
linux菜鳥最近遇到了一個問題,mysql安裝完成,連線資料時報如下的錯誤:
到tmp目錄下確實沒有找到這個檔案。然後我查詢了一下檔案發現檔案是存在的
然後我想吧檔案複製過去試試看。發現這條路走不通。
最終找到了解決辦法。很簡單那就是將var目錄下的mysql.sock檔案軟連線到tmp目錄下
連線MySQL。成功!!!
相關文章
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解決方法MySqlServer
- MySQL連線提示Can't connect to local MySQL server through socketMySqlServer
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- ERROR 2002(HY000):Can't connect to local MySQL socket '/tmp/mysql.sock'ErrorMySql
- ERROR 2002 (HY000): Can't connect server socket /tmp/mysql.sockErrorServerMySql
- MySQL 5.5 關閉資料庫報錯"Can't connect to local MySQL server through socket"MySql資料庫Server
- 更換mysql資料目錄後出現ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 的解決辦法MySqlErrorServer
- mysqldump: Got error: 2002: Can't connect to local MySQL server through.....MySqlGoErrorServer
- MySQL報錯'ERROR 2002 (HY000): Can't connect to local MySQL server through'MySqlErrorServer
- ERROR 2002 (HY000): Cant connect to local MySQL server through socket的解決方法ErrorMySqlServer
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- 【linux】Can't connect to MySQL server on 'XXX' (13)問題解決方式LinuxMySqlServer
- MySQL問題記錄--Can't connect to MySQL server on localhost (10061)解決方法MySqlServerlocalhost
- 異常:Can't connect to MySQL server (10060)MySqlServer
- 解決svnserve: Can't bind server socket: Address already in useServer
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- 連線MySQL錯誤:Can't connect to MySQL server (10060)MySqlServer
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- [jenkins]Can’t connect to window server – not enough permissionsJenkinsServer
- Can'tconnecttolocalMySQLserverthroughsocket'/var/lib/mysql/mysql.sock'(2)MySqlServer
- 啟動mysql時顯示:/tmp/mysql.sock 不存在的解決方法MySql
- Can't connect to X11 window server usingServer
- mysql [ERROR] Can't create IP socket: Permission deniedMySqlError
- error:'Can'tconnecttolocalMySQLserverthroughsocket'/var/lib/mysql/mysql.sock'(2)'ErrorMySqlServer
- ERROR 2002 (HY000): Can't connect server socket /var/run/mysqld/mysqld.sockErrorServerMySql
- mysql can't connect error about privilege----not root userMySqlError
- Navicat 連線 MySQL 失敗:2002-can‘t connect to server on localhost(10061)問題解決MySqlServerlocalhost
- Can't connect to X11 window server using DISPLAY variableServer
- Can't connect to X11 window server using '127.0.0.1:0.0'Server127.0.0.1
- ERROR 2003 (HY000)Can't connect to MySQL server on '192.168.8.247' (113)ErrorMySqlServer
- ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)ErrorMySqlServerlocalhost
- 上手MySQL之解決問題:not allowed to connect to this MySQL serverMySqlServer
- MySQL不能啟動 Can't start server : Bind on unix sockeMySqlServer
- Mac電腦下使用Socket報錯socket丟擲Can’t assign requested address解決Mac
- Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.Server
- java.lang.InternalError: Can't connect to X11 window server using ':0.0' asJavaErrorServer