简体   繁体   中英

Use mysql of wamp stack in stand alone php and apache installation

I am using Wampserver 2.5.My wamp server uses php5.5 but due to some extension issue i had to use php 5.3 so i installed standalone php 5.3 and apache 2.2 on my local system.I made a test.php file and echoed phpinfo() which work fine with stand alone installation but when i try to connect with mysql it show below mentioned error.

Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\development\nrg\test.php on line 12

Thanks

Make sure that in your PHP 5.3's php.ini file you have these two extensions loaded:

extension=php_mysql.dll
extension=php_mysqli.dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM