[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] MySQL Working with phpMyAdmin BUT,, does not work when called



Hello,
I installed the Package Master Version of MySQL recently and phpMyAdmin on a
brand new RAQ550 and for some reason phpMyadmin can see MySQL running and it
can connect to it-- But when I run any php stuff to talk to it

EXAMPLE:

<?
$DB = mysql_connect("localhost", "TheUsername", "ThePassowrd") or die("Could
not connect to DB!");
mysql_select_db("TheDatabase") or die("Could not select database");
?>

I get this error:

"Fatal error: Call to undefined function: mysql_connect() in
/home/.sites/106/site3/web/db.conf on line 2"

NOW,,, I have read through the user groups and found this fix

You just need to edit your /etc/httpd/php.ini file, locate the portion where
it says "extension=mysql.so"
and remove out the comments (the semi colon is the comment).

then restart your httpd daemon 
/etc/rc.d/init.d/httpd restart


---> I did that,, and it still does not work. Can anyone help me out? It
would be greatly appreciated.

Thank You,

Matt