http://cn.php.net/manual/en/mysql.installation.php PHP 5+ Note: If when starting the web server an error similar to the following occurs: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll and/or libmysql.dll cannot be found by the system. 还有就是确定你的apache读的是那个php.ini文件,使用phpinfo()看看
哪我也不知道了.
我是用IIS建的,不知道APACHE是不是一样。你把原来装的删掉再重新装一遍试试,我开始也是出现链接不到数据库,就是这步忘记了。
PHP 5+
Note: If when starting the web server an error similar to the following occurs: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll and/or libmysql.dll cannot be found by the system. 还有就是确定你的apache读的是那个php.ini文件,使用phpinfo()看看
一运行链接的php文件 就提示我描述的问题
使用phpinfo()看看 调用的php.ini是在哪里的再去掉mysql扩展前的分号
还不行的话,拷贝php5目录下和php5/ext目录下的所有dll到system32下。
重启。
再不行!就只能阿弥托福了