Jump to content

Unable to get MySql support enable with MySQl 5.5; Apache 2.2 and PHP 5.2.17 on Vista


Me262

Recommended Posts

Hi there,

 

I have downloaded and installed Mysql 5.5; Apache 2. 2 and PHP 5.2.17 on Vista.

 

When try to connect to the MySql server with:

 

< ?php

echo mysql_connect ( 'localhost', 'username', 'password');

?>

I get the following error message :

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\

 

According to other blogs and stuff I have read on the internet this means that MySql support is not enabled. And according to the same stuff I should try (and have done so) the following:

 

I have checked that

1) c:\php is set as a PATH

2) that extension=php_mysql.dll is uncommented (as well as extension=php_mysqli.dll)

3) and that extension_dir = "c:\php\ext"

4) checked that in the Apache http.cnf file PHPIniDir is set to "c:/php"

 

I still get the same error message. I'm a complete rookie and am probably making some very straight forward simple mistake, and judging by how many post there are regarding this problem, there is probably a simple explanantion. But after several days of looking I'm hoping someone out there can put me out of my misery and tell me what it is? (Yes, I have restarted the computer when i make changes).

 

Please help.

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.