schema:mysql、 information_schema、 performance_schema、 sys
Group by 处理上的不兼容
- 需要考虑回滚方案
- 兼容老的配置
- 不兼容的操作方法,影响复制(grant user)
- 希望是一个平稳的过渡,例如先升级一个从库,到所有从库
- 最少停机时间
- grant-->create user,grant / old_password
- 更改用户权限 MySQL 8.0 只支持 alter user
- flush query cache
- Set @@global.sql_log_bin
./mysqlsh root@127.0.0.1:3311 -e "util.checkForServerUpgrade();"
新的选型 --upgrade
[root@study01 4444]# cat /dev/null > mysql-error.log
[root@study01 4444]# cat mysql-error.log
[root@study01 4444]# tailf mysql-error.log
...
tarting upgrade of data directory.
InnoDB initialization has started.
InnoDB initialization has ended.
X Plugin ready for connections. Bind-address: ‘::‘ port: 33060, socket: /tmp/mysqlx.sock
Finished populating Data Dictionary tables with data.
Server upgrade from ‘50700‘ to ‘80021‘ started.
Server upgrade from ‘50700‘ to ‘80021‘ completed.
easydb.net
微信公众号:easydb
关注我,不走丢!原文:https://www.cnblogs.com/easydb/p/14725944.html