Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Reinstall MySQL in cPanel server  (Read 11496 times)

0 Members and 1 Guest are viewing this topic.

anju

  • Guest
Reinstall MySQL in cPanel server
« 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