Home > Article > Backend Development > Let your WINDOWS support MYSQL4, MYSQL4.1, MYSQL5X_PHP tutorial at the same time
As a PHP+MYSQL (other database) programmer, you may need to test in different database version environments to meet different needs
But with a normal installation of MYSQL, only one version can exist in the Windows system MYSQL database, so you need to change the port and the service name in the system service.
The installation sequence is as follows:
1. Install MYSQL4.0.X first because this version does not have the intelligence of 4.1 and 5.X , you can choose the service name to install, so you have to install 4.0.X first, or you can use the reverse order
2. Install 4.1 or 5. >3. Download PHPMYADMIN and make three copies, and change the ports respectively
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
My ports are:
MYSQL4.0.26 Port: 3304
MYSQL4.1.20 Port: 3305
MYSQL5.1.6 Default port: 3306
This way you can use PHPMYADMIN to manage different versions MYSQL