[LUNI] Advice on how to troubleshoot mysql_connect() errors...
erik at uhacc.org
Thu Dec 23 08:11:27 CST 2004
Did you compile this version of PHP yourself?
That message indicates that his version of PHP does not have mysql support.
PHP needs the "--with-mysql" flag at compile time (--with-mysql=/headers
is better). Another good flag is "--with-mysql-sock"
Joel F. Hacker said:
> I just recently installed Mandrake 10.1 Official,
> and in moving over all my old databases and
> cgi/php scripts, I keep getting this error when I
> try to run my old php files...
> Fatal error: Call to undefined function: mysql_connect
> I have already created the database, and loaded all
> the data. I am not too good at understanding mysql
> users and passwords, but I have sufficiently added a
> user and password so that I can run mysqladmin, but
> I am really struggling in trying to find out what else I
> have to do to get php to connect to the database.
> (Also, I have perl scripts running just fine)
> Any ideas would be greatly appreciated.
> Linux Users Of Northern Illinois - Technical Discussion
More information about the luni