From owner-freebsd-ports@FreeBSD.ORG Tue May 17 18:23:57 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E756216A4CE for ; Tue, 17 May 2005 18:23:57 +0000 (GMT) Received: from web41106.mail.yahoo.com (web41106.mail.yahoo.com [66.218.93.22]) by mx1.FreeBSD.org (Postfix) with SMTP id A1F5C43D49 for ; Tue, 17 May 2005 18:23:57 +0000 (GMT) (envelope-from vu3prx@yahoo.com) Received: (qmail 64674 invoked by uid 60001); 17 May 2005 18:23:52 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Hf5X09c8PTkGTniRMK/vqtYkx8j51qa8fY0IF6HJcUQKG2cBzTpvzywLLUzLGjnuPoCWF9jIdZ0EA7zfRLAk6+HZo7bBUQkhecN7kDWFyorSbRNypC8ktJA2D36BGdGr3afWbFt4E5EJ7Razcfvug18yctfEwZD9yCB4/s4qAnw= ; Message-ID: <20050517182352.64672.qmail@web41106.mail.yahoo.com> Received: from [220.226.8.216] by web41106.mail.yahoo.com via HTTP; Tue, 17 May 2005 11:23:52 PDT Date: Tue, 17 May 2005 11:23:52 -0700 (PDT) From: Yujin Boby To: freebsd-ports@freebsd.org In-Reply-To: <000b01c55b11$7b6c6480$fe00a8c0@uzi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: PHP5 and MySQL 5 - undefined function mysql_connect X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 18:23:58 -0000 > 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 Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html