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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.