MySQL Forums
Forum List  »  PHP

Re: Cannot load mysql extension. Please check your PHP configuration
Posted by: Peter Brawley
Date: June 16, 2009 09:44PM

Nancy,

> phpinfo "works" in the sense that it returns a table. I don't see any info about MySQL in it.

The reason to call phpinfo() is to see what PHP can see and what it can't. If there is no MySQL section there, PHP is not configured correctly for MySQL.

So, back to the drawing board. I've yet to see the stepthrough at http://www.artfulsoftware.com/php_mysql_win.html fail, so let's find out what is wrong. What are your versions of Windows, Apache, PHP, MySQL? In your execution of the stepthrough, what was the result of running this code ...

<?php
mysql_connect('HOST','USR','PWD') or die(mysql_error());
?>

in a file called connect.php, from a command line prompt in your PHP installation folder, viz ...

php connect.php

?

PB

Options: ReplyQuote


Subject
Written By
Posted
Re: Cannot load mysql extension. Please check your PHP configuration
June 16, 2009 09:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.