mysql_upgrade 升级_采用MySQL_upgrade升级授权表方式升级
[[email?protected]?MySQL]#?/usr/local/MySQL/bin/MySQL_upgrade
Looking?for?‘MySQL‘?as:?bin/MySQL
Looking?for?‘MySQLcheck‘?as:?bin/MySQLcheck
Running?‘MySQLcheck‘?with?connection?arguments:?‘--port=3306‘?‘--socket=/tmp/MySQL.sock‘
Running?‘MySQLcheck‘?with?connection?arguments:?‘--port=3306‘?‘--socket=/tmp/MySQL.sock‘
MySQL.columns_priv?????????????????????????????????OK
MySQL.db???????????????????????????????????????????OK
MySQL.event????????????????????????????????????????OK
MySQL.func?????????????????????????????????????????OK
MySQL.general_log??????????????????????????????????OK
MySQL.help_category????????????????????????????????OK
MySQL.help_keyword?????????????????????????????????OK
MySQL.help_relation????????????????????????????????OK
MySQL.help_topic???????????????????????????????????OK
MySQL.host?????????????????????????????????????????OK
MySQL.ndb_binlog_index?????????????????????????????OK
MySQL.plugin???????????????????????????????????????OK
MySQL.proc?????????????????????????????????????????OK
MySQL.procs_priv???????????????????????????????????OK
MySQL.servers??????????????????????????????????????OK
MySQL.slow_log?????????????????????????????????????OK
MySQL.tables_priv??????????????????????????????????OK
MySQL.time_zone????????????????????????????????????OK
MySQL.time_zone_leap_second????????????????????????OK
MySQL.time_zone_name???????????????????????????????OK
MySQL.time_zone_transition?????????????????????????OK
MySQL.time_zone_transition_type????????????????????OK
MySQL.user?????????????????????????????????????????OK
test.heartbeat?????????????????????????????????????OK
test.log20111127???????????????????????????????????OK
test.log20111128???????????????????????????????????OK
test.log20111129???????????????????????????????????OK
test.log20111130???????????????????????????????????OK
test.log20111201???????????????????????????????????OK
test.log20111202???????????????????????????????????OK
test.log20111203???????????????????????????????????OK
test.log20111204???????????????????????????????????OK
test.log20111205???????????????????????????????????OK
test.log20111206???????????????????????????????????OK
test.log20111207???????????????????????????????????OK
test.t1???????????????????????????????????????????????????????OK
test.t2???????????????????????????????????????????????????????OK
Running?‘MySQL_fix_privilege_tables‘...
OK
.7.1 采用MySQL_upgrade升級授權表方式升級(2)
6)再次關閉MySQL服務,命令如下:
/etc/init.d/MySQL?stop或MySQLadmin?-uroot?-p123456?shutdown
7)正常啟動MySQL服務,命令如下:
MySQLd_safe??--defaults-file=/etc/my.cnf?--user=MySQL?&
8)來查看一下版本,如下所示:
MySQL>?select?version();
+-----------------------------------------------------------+
|?version()????????????????????????????????????????????????????????????????|
+-----------------------------------------------------------+
|?5.5.20-enterprise-commercial-advanced-log?|
+-----------------------------------------------------------+
1?row?in?set?(0.00?sec)
MySQL>?select?@@innodb_version;
+----------------------------+
|?@@innodb_version?|
+----------------------------+
|?1.1.8????????????????????????????|
+----------------------------+
1?row?in?set?(0.00?sec)
至此,升級過程完畢。
在升級過程中,有一個需要注意的問題,這是作者之前在安裝時遇到的。RHEL5.3安裝MySQL5.5時出現系統崩潰(如圖1-24所示),當時的環境為:系統是RHEL5.3,64位,XFS分區,MySQL5.5.20二進制版本。
系統崩潰時,作者用DELLDRAC遠程管理卡抓的截屏如圖1-25所示。
可以看出,XFS文件系統在讀寫時出現報錯。出現此問題的原因是,RHEL5.3系統內核未自帶XFS文件系統,是通過往內核打補丁使之支持的,后來把系統升級為RHEL5.5,系統正常了,沒有出現死機情況。
注意
RHEL5.5版本開始,內核支持XFS文件系統。
總結
以上是生活随笔為你收集整理的mysql_upgrade 升级_采用MySQL_upgrade升级授权表方式升级的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: centos mysql 5.1_Cen
- 下一篇: mysql 导入导出 优化_mysql数