uninstall MySQL server and install it fresh again. Restoration issue

toxicos

Member
Sep 18, 2014
8
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 
  • Like
Reactions: Jose Luis Silva