How to downgrade to MySQL 4.0 from 4.1 (Linux/rpms)

If you need mysql 4.0 installed instead of 4.1, you can remove 4.1 and install 4.0 by following this guide.  This guide will wipe out any databases, so you'll need to make backups if you've already setup your databases

cd /usr/local/directadmin/scripts/packages
rm -f MySQL*
wget http://files.directadmin.com/services/all/mysql/MySQL-client-4.0.27-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-devel-4.0.27-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-server-4.0.27-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-shared-4.0.27-0.i386.rpm
cd ..
./mysql.sh rootpass da_admin daadmnpass

Where rootpass and daadmnpass can be anything you want.  This is where they are set, so you can use any passwords you want for them.  The installer will ask  you to delete the data.  You need to select 'y' (yes) to delete the data.  If you've done this before you may need to manually delete /var/lib/mysql first.


Was this article helpful?

mood_bad Dislike 1
mood Like 0
visibility Views: 9007