Jump to content

problems loading mysql extension


InO

Recommended Posts

i get Fatal error: Call to undefined function mysql_connect() because php can't find the extension.  i've added libmysql.dll to my system path, i've uncommented extension=php_mysql.dll in php.ini, i've changed extension_dir from "./" , to "c:\Program Files\Apache Software Foundation\Apache2.2\ext", which is where php_mysql.dll , i didn't install it php in the C folder.  i'm running a WAMP setup with windows xp.

 

i'm just trying to get php to load the extension.  thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/59126-problems-loading-mysql-extension/
Share on other sites

Try not to install PHP within Apaches directories. Install Apache and PHP in separate directories eg C:/Apache and C:/PHP. Never move any files outside of the PHP directory or the Apache directory. Only add the PHP directory (C:/PHP) to the path no other files/folders.

 

When you start moving files outside of directories you can cause more problems than needs be. Especially when you want to upgrade a component. Also I have found having spaces within paths may/can cause problems. I prefer to install AMP in C:/Server which is set out like so:

C:/Server

    |

    +-- Apache

    +-- PHP

    +-- MySQL

    +-- www

 

I find this being the optimal set-up.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.