linux mysql配置與說明
一、軟體安裝
三、碰到mysql的疑難問題,解決方法
關於mysql以下錯誤的解決方法 [root@localhost bin]# ./mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 1.#ps -A|grep mysql
以上這個現象是我在虛擬機上面裝碰到的問題的錯誤提示.
root@localhost ~]# mysql --socket=/tmp/mysql.sock ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost ~]# find / -name mysql.sock 1.直接指定mysql通道 [root@localhost ~]# mysql --socket=/var/lib/mysql/mysql.sock Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> 2. 創建符號連接: 為mysql.sock增加軟連接(相當於windows中的快捷方式). ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql>
|
本文出自 「騰飛與夢想攜行」 博客,謝絕轉載!
[火星人 ] linux mysql配置與說明已經有954次圍觀