Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2005 11:23:49 -0700 (PDT)
From:      Yujin Boby <vu3prx@yahoo.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: PHP5 and MySQL 5 - undefined function mysql_connect
Message-ID:  <20050517182349.30278.qmail@web41115.mail.yahoo.com>
In-Reply-To: <000b01c55b11$7b6c6480$fe00a8c0@uzi>

next in thread | previous in thread | raw e-mail | index | archive | help
> does mysqli_connect() function works?

No, i am still getting error
Call to undefined function mysql_connect()

> 1. IMaybe the make.conf line should be
> WITH_MYSQL_VER=50

I modified /etc/make.conf and deinstalled php and
php5-extensions and installed both with make install
clean

But it won't solve the problem.

> 2. Make sure you have the databases/mysql50-client
> port installed (e.g. 
> pkg_info | grep mysql )

It is installed.

------
server16# pkg_info | grep mysql
mysql-client-5.0.3_1 Multithreaded SQL database
(client)
mysql-server-5.0.3_1 Multithreaded SQL database
(server)
php5-mysql-5.0.4_1  The mysql shared extension for php
------


> 3. For mysql_connect() support, select mysql support
> and not only mysqli 
> within the php-extensions port.

I don't install MySQli port as it show error, MySQL is
checkd and no errors are show.

But i am getting error when i install port at

server16# cd /usr/ports/databases/php5-mysql
server16# make
===>  php5-mysql-5.0.4_1 is marked as broken: unknown
MySQL version: 5.
server16#

Regards,

Yujin


		
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517182349.30278.qmail>