Upgrade PHP's mysql client under Windows system

xiaoxiao2021-03-06  109

Upgrade the PhP's mysql client under Linux is relatively simple. How to operate under the Windows system? I only take mysql4.0.0.x php5 as an example (Note: MySQL client upgrade under php4 needs to be modified, and not described here).

The first step is to http://downloads.mysql.com/snapshots.php Download the version you want to upgrade yourself.

Step 2, extract the download package to a directory, open the mysql.dsw file inside with VC. Choose to compile libmysql release. Then compile will get a libmysql.dll, libmysql.lib.

In the third step, copy libmysql.dll to the Win32Build / Lib / DLL folder override to copy libmysql.lib to the Win32Build / Lib folder overwritten.

In the fourth step, copy my_alloc.h, mysql.h, mysql_com.h, mysql .h, mysql_com.h, mysql_version.h, mysqld_error.h, and copy the libmysql.def in the mysql / libmysql directory to Win32Build. / Include directory.

In the fifth step, recompile PHP. Install PHP-related files into the corresponding directory, copy libmysql.dll to the Windows home directory (in 2000 Winnt Directory, 2003 Windows) directory.

In the sixth step, start the web server, look at PHPINFO, isn't your MySQL library to update to the latest version? Ha ha.

转载请注明原文地址:https://www.9cbs.com/read-122943.html

New Post(0)