PHP5 and MySQL 5 - undefined function mysql_connect
Uzi Klein
uzi at bmby.com
Tue May 17 09:49:28 PDT 2005
----- Original Message -----
From: "Yujin Boby" <vu3prx at yahoo.com>
To: <freebsd-ports at freebsd.org>
Sent: Tuesday, May 17, 2005 6:40 PM
Subject: PHP5 and MySQL 5 - undefined function mysql_connect
> Hi,
>
> I have installed PHP from
>
> cd /usr/ports/lang/php5
> make install clean
>
> Then
>
> cd /usr/ports/lang/php5-extensions
> make install clean
>
> Shows error
>
> -------------
> ===> php5-mysqli-5.0.4_1 Doesn't work with MySQL
> version : 50 (Doesn't support MySQL 323 40 50).
> *** Error code 1
>
> Stop in /usr/ports/databases/php5-mysqli.
> *** Error code 1
>
> Stop in /usr/ports/lang/php5-extensions.
> -------------
>
> I have MySQL 5 installed from latest ports, i have
> cvsup before installing everything. FreeBSD is 5.4
>
mysqli extension is designed for mysql >= 4.1
PHP compiles with the mysql client library (ssems like 3.23 here)
You probably want WITH_MYSQL_VER=5 in your make.conf
[......]
> Fatal error: Call to undefined function
> mysql_connect()
mysql_connetct() uses the mysql extension and not mysqli
Regrads
U
> -------------
>
> How do i correct this ?
>
> Regards,
>
> Yujin
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Make Yahoo! your home page
> http://www.yahoo.com/r/hs
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>
More information about the freebsd-ports
mailing list