DirectAdmin的mysql降级

直接修改配置文件build mysql报错

MySQL 5.7 cannot be directly upgraded to 5.6
If you wish to upgrade MySQL to 5.6, do it in increments, upgrading 5.7 to the next version released, and going up until you reach 5.6.

在官网找到修改mysql版本的方法

perl -pi -e 's/mysqld=ON/mysqld=OFF/' /usr/local/directadmin/data/admin/services.status
service mysqld stop
mv /var/lib/mysql /var/lib/mysql.old
cd /usr/local/directadmin/custombuild
./build set mysql 5.6
./build set mysql_inst mysql
./build set mysql_backup yes
./build update
./build mysql
赞(0)
未经允许不得转载:IDC百科 » DirectAdmin的mysql降级