PHP 5 and mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

PHP 5 and mysql

Post 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
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

this really stinks....allright i guess ill give in and just go bask to php 4.3 that i know works
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Most likely similar to what was discussed here.....
viewtopic.php?t=22732
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post 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
Post Reply