军哥的LNMP一键安装包-降级MySQL版本
TIME 2023-01-31 20:46
当前系统:Debian11 x86_64
查看当前MySQL版本
mysql -V
返回结果
mysql Ver 8.0.32 for Linux on x86_64 (MySQL Community Server – GPL)
当前MySQL版本8.0.32
降级MySQL版本
运行LNMP降级脚本
cd /root/lnmp1.9 && ./upgrade.sh
返回结果
1: Upgrade Nginx
2: Upgrade MySQL
3: Upgrade MariaDB
4: Upgrade PHP for LNMP
5: Upgrade PHP for LNMPA or LAMP
6: Upgrade MySQL to MariaDB
7: Upgrade phpMyAdmin
8: Upgrade Multiple PHP
exit: Exit current script
###################################################
Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 2 //这里键入2,升级MySQL
Enter current root password of Database (Password will not shown): OK, MySQL root password correct.
输入当前数据库root密码(不显示密码):
输入密码后返回结果
Current MYSQL Version:8.0.32 You can get version number from http://dev.mysql.com/downloads/mysql/
MYSQL当前版本:8.0.32
请输入MySQL版本。
Please input MySQL Version you want. (example: 5.5.60 ): 5.7.30
Please input MySQL Version you want. (example: 5.5.60 ): 5.7.30
将其降级到5.7.30版本吧
Do you want to install the InnoDB Storage Engine?
(Default yes,if you want please enter: y , if not please enter: n): y
问是否使用通用二进制文件,回复y
返回结果
You will install the InnoDB Storage Engine
You will upgrade MySQL Version to 5.7.30
Press any key to start…or Press Ctrl+c to cancel
按任意键开始将MySQL版本降级到5.7.30
待降级完成,查看mysql版本
mysql -V
返回结果
mysql Ver 14.14 Distrib 5.7.30, for linux-glibc2.12 (x86_64) using EditLine wrapper
点击数:9