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!

Moving MySQL directory

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

  1. Bidi

    Bidi Well-Known Member

    Joined:
    Oct 3, 2012
    Messages:
    71
    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:
    44,344
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice