Linux

MySQL 5.6 升級 - 表 mysql.proc 的定義不正確

  • March 19, 2013

將 MySQL 從 5.5 版升級到 5.6.10 版後,啟動 MySQL 伺服器時出現以下錯誤:

2013-03-19 05:32:38 2666 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.6.10'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2013-03-19 05:43:27 2666 [ERROR] Incorrect definition of table mysql.proc: expected column 'comment' at position 15 to have type text, found type char(64).

我檢查了 mysql.proc 表,註釋欄位設置為 TEXT。升級後我執行了 mysql_upgrade。在看到該錯誤後,我嘗試使用 –force 再次執行它,但這並沒有解決它。

這個關於 stackoverflow的問題連結到一個錯誤報告,其中提到:

"start the server with the --skip-grant-tables option to cause it to skip the normal grant table checks, then run mysql_upgrade. ... Then stop the server and restart it normally."

錯誤報告中的參考 URL 是: http: //dev.mysql.com/doc/refman/5.5/en/news-5-5-7.html

引用自:https://serverfault.com/questions/489302