This post was last edited by Summer on 2017-8-15 09:02
Solved the problem of modifying the default MYSQL database storage path method in the AMH system panel First, copy the AMH panel database to the mount directory folder Here you can see that the mounted data disk is in the HOME directory, which is generally like this, we can copy /usr/local/mysql/data to the /home/mysql folder. cp -R /usr/local/mysql/data/ /home/mysql/
Execute SSH commands in one step. Second, create a new database directory with soft links Run the ln -s /home/mysql/data command in the /usr/local/mysql/ directory to create a soft link, and delete or change the name of the old DATA database folder, or change the name first. Third, set the new MYSQL directory folder permissions cd /home chown -R mysql:mysql mysql/
Finally, restart the VPS to fix the problem |