MySQL版本升级之5.6到5.7
两种升级方式 In-Place Upgrade : Involves shutting down the old MySQL version, replacing the old MySQL binaries or packages with the new ones, restarting MySQL on the existing data directory, and running mysql_upgrade . Logical Upgrade : Involves exporting existing data from the old MySQL version using mysqldump , installing the new MySQL version, loading the dump file into the new MySQL version, and running mysql_upgrade . 主从的升级: 主从想都替换二进制安装包为最新版本 停从,通过mysql_upgrade升级后,加参数 --skip-slaves-start 进行启动 加参数 --skip-networking重启主,拒绝来自应用的TCP/IP的连接,关闭binlog,执行mysql_upgrade,然后重启 注意点:在关闭服务时加参数 --innodb_fast