MySQL問題記錄——ERROR 1728 (HY000)
摘要:本文主要記錄了在使用MySQL的程序中遇到錯誤代碼為1728的問題以及解決方案,
問題重現
在創建自定義函式的時候,出現了問題:
1 mysql> create function getGrade() returns int(10) return (select grade from score where id = 12); 2 ERROR 1728 (HY000): Cannot load from mysql.proc. The table is probably corrupted 3 mysql>
解決辦法
退出mysql工具視窗,在命令列執行 mysql_upgrade -uroot -p 并輸入密碼:
1 mysql> exit 2 Bye 3 [root@localhost ~]# mysql_upgrade -uroot -p 4 Enter password: 5 ... 6 OK 7 [root@localhost ~]#
問題說明
MySQL升級完成后未對相關資料庫執行升級,需要手動記性升級,
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/125643.html
標籤:MySQL
