Skip to main content

Migrate to mariadb with databases in /home

Comments

4 comments

  • cPanelMichael
    Hello, Could you verify the steps you took to move your databases to the /home partition? Thank you.
    0
  • Benito
    Hello, Could you verify the steps you took to move your databases to the /home partition? Thank you.

    Yes its simple, just move and symbolic link. I followed this steps. /etc/init.d/mysql stop mkdir /home/var_mysql mv /var/lib/mysql /home/var_mysql chown -R mysql:mysql /home/var_mysql/mysql ln -s /home/var_mysql/mysql /var/lib/mysql /etc/init.d/mysql start
    0
  • cPanelMichael
    Hello, The upgrade should work, but I strongly recommend backing up your databases beforehand because this is an unsupported configuration. You should consider reverting this change if you have the available disk space, and then moving it back into place once the upgrade finishes. Thank you.
    0
  • Benito
    Thanks Michael
    0

Please sign in to leave a comment.