ITPub博客

首页 > 数据库 > MySQL > 课时8-备份与恢复2----版本升级

课时8-备份与恢复2----版本升级

原创 MySQL 作者:小亮520cl 时间:2015-11-17 18:43:43 0 删除 编辑
本地升级的方式:
小版本升级:
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 的错误日志文件中,看到了

InnoDB :: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

解决办法: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博客 ” ,链接:https://blog.itpub.net/29096438/viewspace-1839942/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 课时9-常用工具
请登录后发表评论 登录
全部评论
毕业以后专业任职数据库工程师职位,itpub一直作为自己的笔记记录的地方,blog写的不详细,草书笔记,仅供参考!

注册时间:2013-09-12

  • 博文量
    529
  • 访问量
    1126951