How to reinstall MySQL in cpanel
Run the following command to find the SQL rpms that were installed on your server:
1 |
rpm -qa | grep -i sql |
2) Remove the necessary MySQL rpms uisng yum.
Example:
1 |
yum remove MySQL55-shared-5.5.30-3.cp1136.x86_64 MySQL55-client-5.5.30-3.cp1136.x86_64 MySQL55-devel-5.5.30-3.cp1136.x86_64 MySQL55-test-5.5.30-3.cp1136.x86_64 |
3) Then delete the MySQL PID file(s) using this command:
1 |
rm -f /var/lib/mysql/*.pid |
4) Finally run following script to install the cPanel compatible MySQL rpms:
1 |
/scripts/check_cpanel_rpms --fix |
Cheers!!!