My clound VPS server is centos 7.4
,I run apache
,mariadb
in this server.
Now,I want to migrate from mariadb
to mysql
.
During maintenance, server need no user disturb
.
In centos 7, has no run level 1
,then I read this post and tried systemctl rescue
,the result is I cannot login my server any more.
I guess systemctl rescue
close any connection even I am root.
Then, In maintenance period,How to allow root login server and disallow website users connection?
Stopping the apache service will enable a database migration without web traffic changing the database:
Start service after completing the migration: