Click to See Complete Forum and Search --> : php and mysql


mbkman
03-22-2001, 11:03 AM
Hi,
I'm a linux and php newbee. Therefore I did the installation of apache 1.3.9, mysql and php4.0.4pl1 by the book. I didn't get any error messages. Apache, mysql and php work well.

Only the connection between php and mysql failed. The error message is 'Fatal error: Call to undefined function: mysql_connect() in /home/httpd/html/test.php4 on line 10'

What's wrong?
Thanks, Mathias

Anon
03-23-2001, 11:07 AM
hi mathias,

just check if your mysql server is up i.e
/etc/rc.d/init.d/mysqld status

if yes, then check if your mysql module has been uncommented in the php.ini file.

if yes to this also, then confirm that you have got the mysql.so file in the right place

hope one of these work
steve

mbkman
03-26-2001, 02:21 AM
Hi Steve,

- mysqld is up, at least I can connect and play around with some databases.
- in the php.ini file, mysql is uncommented and I've got the comment, that MySQL support is built in and no dll is needed.
- I can't find any file 'mysql.so'. Where can I get it and where has it to be?

Thanks a lot.
Mathias