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.

uninstall MySQL server and install it fresh again. Restoration issue

Discussion in 'Database Discussions' started by toxicos, Dec 19, 2017.

  1. toxicos

    toxicos Member

    Joined:
    Sep 18, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I had a recent crash on the server.

    I need to uninstall the MySQL, install it again (v 5.5.58-1 if I am not mistaken) and after to delete the /var/lib/mysql/ directory and replace it with the automatic system's "backup" that WHM has. file name _var_lib_mysql.tar

    So,

    Can anyone tell me the correct procedure to uninstall the MySQL, and after to install it?


    server centos6

    Also,

    /scripts/mysqlup --force
    -bash: /scripts/mysqlup: No such file or directory
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,437
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Here are the commands you would use to uninstall the existing MySQL 5.5 RPMs from the system:

    Code:
    /usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.MySQL55 uninstalled
    /usr/local/cpanel/scripts/check_cpanel_rpms
    Then, to install the RPMs again, you'd run the following commands:

    Code:
    /usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.MySQL55 installed
    /usr/local/cpanel/scripts/check_cpanel_rpms
    Thank you.
     
Loading...

Share This Page