天天看點

thinkPHP+MySQL學習筆記-2014-10

1、MySQL占用CPU過大,重新開機MySQL 出現      * MySQL manager or server PID file could not be found!  的錯誤  找到  mysql-bin.index 檔案删除重新啟動解決

2、檢視MySQLCPU占用過大原因,mysql -uroot -p 登陸mysql   輸入 show processlist;指令檢視出現問題的SQL語句