Heim  >  Artikel  >  Datenbank  >  PHP Warning: PHP Startup: Unable to load dynamic library &am_MySQL

PHP Warning: PHP Startup: Unable to load dynamic library &am_MySQL

WBOY
WBOYOriginal
2016-06-01 13:52:011028Durchsuche

就是在mantisbt安装页面,进行安装之前,要检查是否连接到mysql数据库

安装Apache2和php5+Mysql的过程中,大家可能遇到过这样的问题,在apache的error日志:

PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/php5/ext/php_mysql.dll' - ?????????/r/n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/php5/ext/php_mysqli.dll' - ?????????/r/n in Unknown on line 0

网上有很多文章讲关于这个问题的解决方法,如果找了一圈,发现问题还是没有解决,那就试试这个:

假设你的apache2安装在c:/apache2,php安装在c:/php5:

解决方法:

拷贝c:/php5/libmysql.dll 到 C:/Apache2/bin

其他的关于apache,和php的配置,我也列在下面,供参考:

httpd.conf

LoadModule php5_module "c:/php5/php5apache2.dll"

AddType application/x-httpd-php .php .php4 .php5

PHPIniDir "c:/php5"

php.ini

extension=php_mysql.dll

extension=php_mysqli.dll

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/baidongli/archive/2011/03/29/6285565.aspx

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn