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!

How To Move database to ssd

Discussion in 'Database Discussion' started by monovm, Oct 19, 2016.

Tags:
  1. monovm

    monovm Member

    Joined:
    Oct 6, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    in one of our servers we need to move database from sata hdd to ssd hard drive.
    database size is 6 gb
    how we can do this very secure.
    Regards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Use the below steps to change MySQL directory. Before doing anything you can take database backup.

    1) Mount your ssd disk on new mount point /mysql
    2) stop cpanel Apache and mysql service
    3) Move your mysql directory from /var/lib/mysql to /mysql/mysql
    4) Create symlink of mysql directory from /var/lib/mysql to /mysql/mysql
    5) Start the mysql apache and cpanel services.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. monovm

    monovm Member

    Joined:
    Oct 6, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    thanks SysSachin

    have nice day
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Monovm,
    You are welcome.
    Please update here if you are getting any issue with this process.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPLevey

    cPLevey Technical Analyst Supervisor
    Staff Member

    Joined:
    Dec 3, 2015
    Messages:
    44
    Likes Received:
    8
    Trophy Points:
    83
    Location:
    Houston, TX
    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