Page 1 of 1

PHP 5 and mysql

Posted: Thu Jun 17, 2004 2:46 pm
by dull1554
ok heres my problem...last night i got bored so i downloaded and installed apache 2 and PHP 5.....everything was working fine until i just tried to use phpmyadmin, i get the following error

Code: Select all

cannot load MySQL extension,
please check PHP Configuration.
then i thought id try do see if mysql was working fine so i opened up send and i wrote this

Code: Select all

<?php 
$link = mysql_connect('localhost', 'blah', 'blah') or die(mysql_error()); 
$db_list = mysql_list_dbs($link) or die(mysql_error()); 

while ($row = mysql_fetch_object($db_list)) { 
   echo $row->Database . "\n"; 
} 
?>
if i run it in zend it returns the 4 databases in mysql.....
but if i run it from my webserver it returns nothing at all
is it a problem with my install of php 5, do i need to reinstall mysql, or is it just an issue with me/phpMyAdmin????
thanks guys

Posted: Fri Jun 18, 2004 11:36 am
by dull1554
this really stinks....allright i guess ill give in and just go bask to php 4.3 that i know works

Posted: Fri Jun 18, 2004 11:48 am
by redmonkey
Most likely similar to what was discussed here.....
viewtopic.php?t=22732

Posted: Fri Jun 18, 2004 2:39 pm
by dull1554
well i looked at that i got the same error as he did the little popup box that says error unable to load.......
well i checked it out i have all the dlls in the correct places and also i have gd2 and openssl enabled and if i disable the mysql extension all those functions work fine so its just mysql thats giving me a problem