In the case of moving the MySQL path to the other partition, almost all threads will end on this topic. But this topic is locked and I can not write on that. That's why I opened this new thread.
First of all, I would like to know that, given how many years have passed since then, is it still valid and verifiable?
And a few things I think about that topic are important and need to be corrected:
1) The command `mkfs.ext4` is very dangerous and the entire partition will be lost and formatted. Therefore, it might be better to warn the user in this case.
2) Must go to WHM, choose `Service Manager` menu and uncheck on Monitoring `MySQL Server` option then click save. It’s an important step to prevent MySQL services to being automatically restart by WHM service monitor.
3) Before `mount` command, must run `mkdir /var/lib/mysql` for create new `mysql` folder, because before it, the folder moved.
4) This solution is for move to new partition and not a new path directory.
First of all, I would like to know that, given how many years have passed since then, is it still valid and verifiable?
And a few things I think about that topic are important and need to be corrected:
1) The command `mkfs.ext4` is very dangerous and the entire partition will be lost and formatted. Therefore, it might be better to warn the user in this case.
2) Must go to WHM, choose `Service Manager` menu and uncheck on Monitoring `MySQL Server` option then click save. It’s an important step to prevent MySQL services to being automatically restart by WHM service monitor.
3) Before `mount` command, must run `mkdir /var/lib/mysql` for create new `mysql` folder, because before it, the folder moved.
4) This solution is for move to new partition and not a new path directory.