scripts/mysqlup is deprecated. mysql is now updated by the rpm.versions system when you run upcp.

luis

Well-Known Member
Sep 3, 2001
50
0
306
Hello, now that /scripts/mysqlup is deprecated how do i go about reinstalling mysql manually?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Re: scripts/mysqlup is deprecated. mysql is now updated by the rpm.versions system when you run upcp

Hello :)

It's generally recommended to troubleshoot an issue before reinstalling MySQL to resolve it. However, if necessary, you can remove the existing MySQL RPMs and then run the following command:

Code:
/usr/local/cpanel/scripts/check_cpanel_rpms --fix
It's also a good idea to backup your MySQL data before reinstalling it:

Code:
cp -Rf /var/lib/mysql /var/lib/mysql-backup
You can remove the backed up directory after you ensure MySQL was reinstalled successfully.

Thank you.
 

luis

Well-Known Member
Sep 3, 2001
50
0
306
Re: scripts/mysqlup is deprecated. mysql is now updated by the rpm.versions system when you run upcp

How do I remove the existing MySQL RPMs?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Re: scripts/mysqlup is deprecated. mysql is now updated by the rpm.versions system when you run upcp

You can run the following command to get a list of the MySQL RPMs installed on your system:

Code:
rpm -qa|grep MySQL
Then, you can remove the RPMs that start with the version of your MySQL. For instance, if you have MySQL 5.5 installed, you would run a command such as this for each MySQL55 RPM:

Code:
rpm -e MySQL55-server-5.5.32-1.cp1136.x86_64
Thank you.