課時8-備份與恢復2----版本升級

小亮520cl發表於2015-11-17
本地升級的方式:
小版本升級:
1,只需要將 /home/data/mysql/bin/         下面的 mysqld(高版本) 替換 mysqld(低版本)
2.  再將 /home/data/mysql/share/english  下面的 errmsg.sys(高版本) 替換 errmsg.sys(低版本


大版本升級
1.將低版本的資料目錄data 複製到高版本去,以高版本的mysqld_safe方式啟動
2.[root@localhost mydata]# /home/data/mysql/bin/mysql_upgrade --defaults-file=/home/data/mydata/3309/my.cnf   --進行升級,更新許可權表
   [root@localhost mydata]#/home/data/mysql/bin/mysql_upgrade --sock=/data/mydata/3306/mysql.sock -uroot -phaodai_2012_2013   --上面失敗就用這個 指定sock的方式升級.5.7得用socket

注意:將低版本的innobackupex全備恢復後 用高版本的mysql啟動也是同理需要升級



如果在mysql 的錯誤日誌檔案中,看到了

 :: 解決辦法:http://blog.csdn.net/wx_mdq/article/details/16804827


如果看到:
  1. 2016-03-24 11:17:29 48118 [ERROR] Native table 'performance_schema'.'socket_instances' has the wrong structure
  2. 2016-03-24 11:17:29 48118 [ERROR] Native table 'performance_schema'.'socket_summary_by_instance' has the wrong structure
  3. 2016-03-24 11:17:29 48118 [ERROR] Native table 'performance_schema'.'socket_summary_by_event_name' has the wrong structure
  4. 2016-03-24 11:17:29 48118 [ERROR] Native table 'performance_schema'.'session_connect_attrs' has the wrong structure
  5. 2016-03-24 11:17:29 48118 [ERROR] Native table 'performance_schema'.'session_account_connect_attrs' has the wrong structure   --關於performance_schema的錯誤
解決辦法:升完級後重啟兩便資料庫吧



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-1839942/,如需轉載,請註明出處,否則將追究法律責任。

相關文章