How to upgrade the MySQL client of PHP in Windows _ MySQL

Source: Internet
Author: User
Upgrading the MySQL client of PHP in Linux is relatively simple. In Windows, how does one do this? Here, I only use MySQL4.0.x + PHP5 as an example (note: There are many things to be modified during MySQL client upgrade under php4, which is not described here ). Step 1: Download the version you want to upgrade to downloads. mysql. comsnapshots. php. Step 2: resolve the downloaded package to upgrade the MySQL client of PHP in Linux. In Windows, how does one do this? Here, I only use MySQL4.0.x + PHP5 as an example (note: There are many things to be modified during MySQL client upgrade under php4, which is not described here ).

Step 1: Download the version you want to upgrade at http://downloads.mysql.com/snapshots.php.

Step 2: extract the downloaded package to a directory and use VC to open the mysql. dsw file. Select to compile only libmysql release. Then, a libmysql. dll and libmysql. lib are compiled.

Step 3: copy libmysql. dll to the win32build/lib/dll folder and overwrite libmysql. lib to the win32build/lib folder.

Step 4: set my_alloc.h and mysql under mysql/include. h. copy mysql_com.h, mysql_version.h, and mysqld_error.h to the win32build/include directory and overwrite libmysql in the mysql/libmysql directory. def copy to the win32build/include directory.

Step 5: recompile PHP. Install php related files to the corresponding directory, copy libmysql. dll to the windows Main Directory (in the winnt directory in 2000, windows in 2003) directory.

Step 6: Start the web server and check if your mysql database has been updated to the latest version in phpinfo?

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.