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.

How To Move database to ssd

Discussion in 'Database Discussions' 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
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    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.
     
  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
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    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.
     
  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
Loading...

Share This Page