Linux mysql 登录 2002,Linux 下 Mysql error 2002 错误解决
生活随笔
收集整理的這篇文章主要介紹了
Linux mysql 登录 2002,Linux 下 Mysql error 2002 错误解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Linux 下 Mysql error 2002 錯誤解決
先查看 /etc/rc.d/init.d/mysqld status 查看mysql是否已經啟動.
如果啟動的的話,先將數據庫停止 ? kill mysql的進程id
[root@localhost beinan]#chown -R mysql:mysql /var/lib/mysql
[root@localhost beinan]# /etc/init.d/mysqld start
啟動 MySQL: [ 確定 ]
[root@localhost lib]# mysqladmin -uroot password '123456'
[root@localhost lib]# mysql -uroot -p ? ? ? ?--登錄數據庫
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.1.11
Type 'help;' or '/h' for help. Type '/c' to clear the buffe
OK!
總結
以上是生活随笔為你收集整理的Linux mysql 登录 2002,Linux 下 Mysql error 2002 错误解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果6s支持快充吗
- 下一篇: 在MYSQL中输入net stop my