溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

mysql 5.1升5.6 升級(jí)后出現(xiàn)問(wèn)題怎么處理

發(fā)布時(shí)間:2021-11-06 11:36:27 來(lái)源:億速云 閱讀:204 作者:小新 欄目:MySQL數(shù)據(jù)庫(kù)

這篇文章主要為大家展示了“mysql 5.1升5.6 升級(jí)后出現(xiàn)問(wèn)題怎么處理”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“mysql 5.1升5.6 升級(jí)后出現(xiàn)問(wèn)題怎么處理”這篇文章吧。

錯(cuò)誤: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)





開(kāi)發(fā)在測(cè)試機(jī)上自己yum安裝了一個(gè)mysql,目前centos的yum中的mysql版本是5.1,線(xiàn)上都5.6.20了....所以.擦屁股唄....升級(jí)測(cè)試機(jī).

安裝5.6.20 過(guò)程就忽略了..
mysqldump 導(dǎo)出數(shù)據(jù):
mysql -e "show databases;" -uroot -p| grep -Ev "Database|information_schema|mysql|test|performance_schema" | xargs mysqldump -uroot -p --databases > mysql51.sql

在導(dǎo)入數(shù)據(jù).
ps:mysql這個(gè)庫(kù)我是單獨(dú)導(dǎo)的,一開(kāi)始我想的是,版本不一樣,可能存在差異,所以,就單獨(dú)導(dǎo),以防失敗.

整個(gè)過(guò)程都很順利,后來(lái)做備份腳本的時(shí)候,發(fā)生問(wèn)題了.....
[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)



輾轉(zhuǎn)反側(cè)才發(fā)現(xiàn)問(wèn)題所在,雖然mysqldump導(dǎo)出的是sql文件,但是mysql庫(kù)中的表結(jié)構(gòu),視圖等信息,仍然還是5.1的結(jié)構(gòu).所以需要執(zhí)行升級(jí)腳本.
進(jìn)入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 升級(jí)后出現(xiàn)問(wèn)題怎么處理”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI