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.

change --basedir location

Discussion in 'Database Discussions' started by mr.question, May 17, 2014.

  1. mr.question

    mr.question Registered

    Joined:
    May 17, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a problem with the r1soft mysql addon(restore option) because mysql basedir is set wrong.

    Right now the server runs with:

    /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/

    And I want to change the --basedir option to --basedir=/usr

    If I add in my.cnf the option basedir=/usr and I restart the server I receive this error.

    ERROR! MySQL manager or server PID file could not be found!

    Any idea how can I change the basedir location ?


    Thanks.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, please let us know what is output to the MySQL error log when restarting MySQL. You may also want to report the issue to R1Soft if their application is not working as intended.

    Thank you.
     
Loading...

Share This Page