這篇文章主要為大家展示了“MySQL 5.1升5.6 升級后出現(xiàn)問題怎么處理”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“mysql 5.1升5.6 升級后出現(xiàn)問題怎么處理”這篇文章吧。
讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:域名注冊、網(wǎng)站空間、營銷軟件、網(wǎng)站建設(shè)、沙縣網(wǎng)站維護、網(wǎng)站推廣。
錯誤: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)
開發(fā)在測試機上自己yum安裝了一個mysql,目前centos的yum中的mysql版本是5.1,線上都5.6.20了....所以.擦屁股唄....升級測試機.
安裝5.6.20 過程就忽略了..
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這個庫我是單獨導(dǎo)的,一開始我想的是,版本不一樣,可能存在差異,所以,就單獨導(dǎo),以防失敗.
整個過程都很順利,后來做備份腳本的時候,發(fā)生問題了.....
[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)問題所在,雖然mysqldump導(dǎo)出的是sql文件,但是mysql庫中的表結(jié)構(gòu),視圖等信息,仍然還是5.1的結(jié)構(gòu).所以需要執(zhí)行升級腳本.
進入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 升級后出現(xiàn)問題怎么處理”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!