Coexistence of mysql4, mysql4.1, and MySQL 5

Source: Internet
Author: User
Because of work needs, we need to follow these three things. Because MySQL 4 is used in the old system, MySQL 4.1 has more features such as foreign keys, and mysql5 has more stored procedures and so on, so we try to co-exist on a single machine. In fact, it is very simple. The installation packages for MySQL 4.1 and MySQL 5 are already very automated, but you must set different ports. For example, MySQL 4 uses 3306, while MySQL 4 does. 1. I used 3308, and mysql5 used 3309. During installation, all of them were installed as Windows Services.
We recommend phpMyAdmin for management pull, but this time it is troublesome to create two more directories, one for MySQL 4.1 and the other for MySQL 5, phpmyadmin41 respectively, phpmyadmin5. Make sure to change the configuration in. php.
$ Cfg ['servers'] [$ I] ['Port'] = '000000'; the corresponding port is used here.
Note that both MySQL 4.1 and MySQL 5 have changed the authentication method, because MySQL 4.1 and MySQL 5 are connected under DOS, respectively,
And then modify it in this way.
Mysql> Update mysql. User SET Password = old_password ('Newpwd')-> Where host ='Some_hostAnd user ='Some_user'; Mysql> flush privileges; then IE is used, for example, http: // localhost: 8081/phpmyadmin4, http: // localhost: 8081/phpmyadmin41,
Http: // localhost: 8081/phpmyadmin5, you can easily manage these three MySQL databases.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.