I finally got this to work, so I will post my findings here.
//PHP 5 : Windows build needs a MySQL DLL //PHP 5.0 doesn't come with mysql support... You have to get the librariesyourself... //I think u can get them from mysql.com
// PHP 5 Beta 2 //The file php_mysql.dll comes with these snapshots, as well as a new version of libmySQL.dll, //so I suggest a full upgrade to Beta 2 instead of just extracting php_mysql.dll for use with Beta 1.
//Note 1: The extension dir need not be ".\", as Hermawan mentioned. It works fine for me with the extensions subdir where the other extensions are located.
//Note 2: The php.ini file need not be in the Apache root, as lars mentioned. It works fine for me in the Windows dir.
If any of these files are missing in the modules directory, Apache will fail to start.
Be sure the extension can find the following files:
php_mysql.dll iconv.dll libmySQL.dll
If any of them can't be found, Apache will start but will issue a warning like this: "Unknown(): Unable to load dynamic library 'c\php\extensions\php_mysql.dll" - The specified module could not be found."
php_mysql.dll should be in the extensions directory.
iconv.dll should be in the Apache modules directory.
libmySQL.dll must be either in the Apache root directory or the Windows system directory. I prefer the former because it's cleaner, as other applications don't necessarily use this MySQL library version.
Note 3: Be sure to use the libmySQL.dll file bundled with PHP. In my case, trying to use the libmySQL.dll from the MySQL 4.1 alpha package resulted in this error message: "Unknown(): Unable to load dynamic library 'c:\php\extensions\php_mysql.dll" - The specified procedure could not be found."
Start Apache and everything should be fine.
2.运行C:\mysql\bin\winmysqladmin.exe 设定user 和password 3.运行mysql,测试一下 mysql> show databases;
+-----------+ | Databases | +-----------+ | mysql | | test | +-----------+
如果出现以上画面,表明mysql已经安装成功;
2.更改MySQL系統之管理者密碼(新密碼的地方,換成您要設定的密碼) mysql> UPDATE user SET password=password('新密碼') where user='root';
修改 C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\config.inc.php 查找以下这么一段: $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. // You can disable a server config entry by setting host to ''. 在这段之后再继续查找: