linux下mysql啟動不了


啟動錯誤  service mysql start
Redirecting to /bin/systemctl start  mysql.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

啟動mysql數據庫   /etc/init.d/mysqld start
Starting MySQL./usr/local/mysql/bin/mysqld_safe: line 586: /var/lib/mysql/mysqld_safe.pid: No such file or directory
awk: (FILENAME=- FNR=1) warning: error writing standard output (Broken pipe)
2017-09-18T15:34:56.932709Z mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
The server quit without updating PID file (/var/lib/mysql/i[FAILED]wd8737sb59wtxz.pid).



關閉錯誤  service mysql stop
Redirecting to /bin/systemctl stop  mysql.service
(用/bin/systemctl stop  mysql.service啟動 不是service mysql stop)



重啟錯誤   service mysql restart
Redirecting to /bin/systemctl restart  mysql.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.



登陸錯誤   mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)



systemctl status mysqld.servicejournalctl -xe查看服務啟動失敗的原因


查看mysql的pid   service mysqld status
MySQL is not running, but lock file (/var/lock/subsys/mysql[FAILED]

ps -ef | grep mysql        查看mysql的運行狀態
root     17653 16990  0 11:48 pts/0    00:00:00 grep --color=auto mysql


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM