Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: anju on November 03, 2013, 06:54:30 am

Title: Reinstall MySQL in cPanel server
Post by: anju on November 03, 2013, 06:54:30 am
Run the following command to find the SQL rpms that were installed on your server:

rpm -qa | grep -i sql

2) Remove the necessary MySQL rpms uisng yum.

Example: 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:

rm -f /var/lib/mysql/*.pid

4) Finally run following script to install the cPanel compatible MySQL rpms:

/scripts/check_cpanel_rpms --fix