mysql 啟動錯誤-server PID file could not be found

來源:互聯網
上載者:User

標籤:mysql 啟動錯誤-server pid file could not be found

一、重新啟動mysql資料庫

[[email protected] ~]# service mysqld restart
Shutting down MySQL.[  OK  ]
Starting MySQL.The server quit without updating PID file (/application/mysql-5.5.32/data/localhost.localdomain.pid).[FAILED]

 

二、停止mysql資料庫

[[email protected] ~]# service mysqld stop
MySQL server PID file could not be found![FAILED]

 

三、解決措施:

       1. [[email protected] ~]# ps -ef | grep mysql
root      5257  4319  0 20:13 pts/1    00:00:00 mysql -uroot -px xxxxxxxx
root      7535  5289  0 20:28 pts/2    00:00:00 grep mysql

如果看到上面的內容,那說明,Mysql的進程卡死了,這時用就要把這些卡死的進程都關

       2.[[email protected] ~]# kill -9 5257

       3.[[email protected] ~]# service mysqld start
          Starting MySQL.[  OK  ]

        4.[[email protected] ~]# ps -ef | grep mysql
root      7556     1  0 20:28 pts/2    00:00:00 /bin/sh /application/mysql-5.5.32/bin/mysqld_safe --datadir=/application/mysql-5.5.32/data --pid-file=/application/mysql-5.5.32/data/localhost.localdomain.pid
mysql     7833  7556  2 20:28 pts/2    00:00:00 /application/mysql-5.5.32/bin/mysqld --basedir=/application/mysql-5.5.32 --datadir=/application/mysql-5.5.32/data --plugin-dir=/application/mysql-5.5.32/lib/plugin --user=mysql --log-error=/application/mysql-5.5.32/data/localhost.localdomain.err --pid-file=/application/mysql-5.5.32/data/localhost.localdomain.pid --socket=/application/mysql-5.5.32/tmp/mysql.sock --port=3306

 

 

本文出自 “技術在手,天下我有” 部落格,請務必保留此出處http://xin521long.blog.51cto.com/11884590/1833181

mysql 啟動錯誤-server PID file could not be found

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.