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.

Where does cpanel keep it's mysql databases.

Discussion in 'General Discussion' started by brad457, Jan 26, 2004.

  1. brad457

    brad457 Member

    Joined:
    Nov 27, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Problem is when rebooting my server the drive can only be mounted in single user mode becuase of some problem with mount. My hosting company will be mounting it as a secondary drive so I may transfer my data off of it. What folder(s) are the mysql db, what files are they, because I was going to setup everything like before and copy everything over. Or is there another way to get the data off the second mounted drive?
     
  2. WebmastTroy

    WebmastTroy Well-Known Member

    Joined:
    Apr 28, 2002
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    /var/lib/mysql by default
     
  3. brad457

    brad457 Member

    Joined:
    Nov 27, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    So if I copy the contents of that directory over to the new server all my mysql db and data should be there?
     
  4. WebmastTroy

    WebmastTroy Well-Known Member

    Joined:
    Apr 28, 2002
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    Correct. Be sure to use the same version of MySQL on the "new" server as you are the current/old one so you don't run into problems.
     
Loading...

Share This Page