這篇文章主要為大家展示了“mysql 5.1升5.6 升級后出現問題怎么處理”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“mysql 5.1升5.6 升級后出現問題怎么處理”這篇文章吧。

錯誤:mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'born_CRM'': Cannot load from mysql.proc. The table is probably corrupted (1728)
Warning: Using a password on the command line interface can be insecure.
mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'mysql'': Cannot load from mysql.proc. The table is probably corrupted (1728)
開發在測試機上自己yum安裝了一個mysql,目前centos的yum中的mysql版本是5.1,線上都5.6.20了....所以.擦屁股唄....升級測試機.
安裝5.6.20 過程就忽略了..
mysqldump 導出數據:
mysql -e "show databases;" -uroot -p| grep -Ev "Database|information_schema|mysql|test|performance_schema" | xargs mysqldump -uroot -p --databases > mysql51.sql
在導入數據.
ps:mysql這個庫我是單獨導的,一開始我想的是,版本不一樣,可能存在差異,所以,就單獨導,以防失敗.
整個過程都很順利,后來做備份腳本的時候,發生問題了.....
[root@localhost dbbackup]# ./backup.sh
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'born_CRM'': Cannot load from mysql.proc. The table is probably corrupted (1728)
Warning: Using a password on the command line interface can be insecure.
mysqldump: Couldn't execute 'SHOW FUNCTION STATUS WHERE Db = 'mysql'': Cannot load from mysql.proc. The table is probably corrupted (1728)
輾轉反側才發現問題所在,雖然mysqldump導出的是sql文件,但是mysql庫中的表結構,視圖等信息,仍然還是5.1的結構.所以需要執行升級腳本.
進入mysql 5.6安裝目錄:
[root@localhost ~]# cd /opt/mysql3307/bin/
[root@localhost bin]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
FATAL ERROR: Upgrade failed
[root@localhost bin]# mysql_upgrade -uroot -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
mysql.columns_priv OK
mysql.db OK
.
.
.
.
yrd_e8trunk_zyl.user_origin OK
yrd_e8trunk_zyl.user_password_extend OK
yrd_e8trunk_zyl.user_points OK
yrd_e8trunk_zyl.user_points_detail OK
yrd_e8trunk_zyl.user_relation OK
yrd_e8trunk_zyl.user_role OK
OK
[root@localhost bin]#
[root@localhost bin]#
以上是“mysql 5.1升5.6 升級后出現問題怎么處理”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注創新互聯-成都網站建設公司行業資訊頻道!
分享標題:mysql5.1升5.6升級后出現問題怎么處理-創新互聯
分享URL:http://www.yijiale78.com/article10/dddpgo.html
成都網站建設公司_創新互聯,為您提供服務器托管、App設計、ChatGPT、定制開發、手機網站建設、Google
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯