mysql_connect error

Rodrigo Gonzalez rjgonzale at estrads.com.ar
Tue Jun 14 15:46:12 UTC 2011


> 
> Hi Glenn,
> 
> Try running this command in your shell:
> 
> php -i | grep -i php.ini
> 
> Does the reported path match the one reported by your phpinfo page
> (viewed in the web browser)?  Also, is it possible you have multiple php
> executables installed?  What is the output of the following commands?
> 

Also run
php -m

and see that mysql is in list

You should check that it is using the same php.ini as Greg said, and if 
required symlink the files or add extension=mysql.so to the php.ini used by cli


More information about the freebsd-questions mailing list