Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving MySQL directory

Discussion in 'Database Discussions' started by Bidi, Aug 19, 2017.

  1. Bidi

    Bidi Well-Known Member

    Joined:
    Oct 3, 2012
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Romania, Transilvania
    cPanel Access Level:
    DataCenter Provider
    I do not understand i made

    mkdir /home/mysql
    cp -R /var/lib/mysql /home/mysql
    mv /var/lib/mysql /var/lib/mysql_bk
    chown -R mysql:mysql /home/mysql/mysql
    ln -s /home/mysql/mysql /var/lib/mysql
    /etc/init.d/mysql start

    Before i stoped mysql and monitor for it and nothink worked, after mv mysql_bk mysql and starting backup mysql was all working.

    Is sompting wrong i made ?
     
    #1 Bidi, Aug 19, 2017
    Last edited: Aug 19, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page