Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.60.162.122.airtelbroadband.in)
Date: April 30, 2012 05:33AM

I installed Wampserver on Windows 7. But cannot access Phpmy Admin

I need to access it through localhost.

As soon as i type the URL :: htttp://localhost/phpmyadmin, i get the following error::

mysqli extension is missing, pls check php configuration.


Advice??

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: stevenmartin99 (Moderator)
Date: April 30, 2012 06:34AM

Maybe MySQL is not running - is the wamp icon Green or orange?

U must have another SQL server running on port 3306

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.184.68.182.airtelbroadband.in)
Date: April 30, 2012 04:16PM

Hi

It looks like MySQL is not running. The Wamp Icon is green. How do i check on the other SQL server?

Any other possible fixup i should try?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.60.162.122.airtelbroadband.in)
Date: May 01, 2012 02:20PM

Anyone pls advice?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: RiggsFolly (---.as13285.net)
Date: May 03, 2012 12:31PM

Have you checked that you have not altered the default PHP configuration?

click on wampmanager -> php -> extensions

and make sure that php_mysqli is ticked.

If it is not, click that line in the menu and wait 20 seconds for wampmanager to change the php.ini file. The wampmanager icon will then go orange and then green again as wampmanager stops and then restarts apache to activate the config change.

Then try phpmyadmin again.

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.245.33.241.cdma-hyderabad.vsnl.net.in)
Date: May 03, 2012 12:43PM

php_mysqli was always ticked, so that is not a trouble.

Besides, i also have Apache & Mysql installed separately as a service. Although, they are all turned off, could that be the trouble?

Any other possible issues?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: RiggsFolly (---.as13285.net)
Date: May 03, 2012 01:06PM

Quite possibly you have ini file from the other installs that are being picked up instead of the wamp ones.

Simplest solution would be to uninstall all other apache and mysql installations.

Some installations help docs do tend to spray ini file about in system directories.
So check for php.ini my.ini httpd.conf files anywhere else on your disk especially in c:windows and lower folders

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.245.31.73.cdma-hyderabad.vsnl.net.in)
Date: May 03, 2012 04:21PM

Post un-installing all services, the error continues.


here is the error::

The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>

This comes when i try to access "" PHPmyadmin" from the Wampserver localhost page.

Advice?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: RiggsFolly (---.as13285.net)
Date: May 03, 2012 05:30PM

This only happens to me when mysqli is not ticked on the extension list.

So if yours is ticked then it makes me think you have some other php.ini file that is being picked up by apache before it looks for the correct one.

Run phpinfo from the main wamp screen

wampmanager -> Localhost then under the tools section there is a phpinfo() link, click that

Look for the parameter 'Loaded Configuration File', its on line 9 or so of the first block of info.
It should say something like
C:\wamp\bin\apache\Apache2.2.xx\bin\php.ini

What does your say?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.161.82.29.del-cdma.dialup.vsnl.net.in)
Date: May 03, 2012 09:37PM

It says exactly the same.

However, with some tickering, my error message has changed to ::

""
MySQL said:
#1045 - Access denied for user 'root'@'localhost' (using password: YES)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
""
This happens when i try to access the Myadmin Page.

However, when i type httt://localhost/testmysql.php - It very correctly says " Connection OK"

Advice?

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: RiggsFolly (---.as13285.net)
Date: May 04, 2012 12:04AM

Edit

X:\wamp\apps\phpmyadminx.y.z\config.inc.php

add the password to $cfg['Servers'][$i]['password'] = '';

Options: ReplyQuote
Re: Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\testmysql.php on line 2
Posted by: sum_anand (---.56.98.14.tataidc.co.in)
Date: May 04, 2012 09:49AM

It worked now, leaving the password blank.

Thank you so much. Am off to starting build Child themes now.

Options: ReplyQuote


Sorry, only registered users may post in this forum.