From owner-freebsd-ports@FreeBSD.ORG Tue May 17 18:23:55 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 89C7116A4CE for ; Tue, 17 May 2005 18:23:55 +0000 (GMT) Received: from web41115.mail.yahoo.com (web41115.mail.yahoo.com [66.218.93.31]) by mx1.FreeBSD.org (Postfix) with SMTP id 4530D43D39 for ; Tue, 17 May 2005 18:23:55 +0000 (GMT) (envelope-from vu3prx@yahoo.com) Received: (qmail 30280 invoked by uid 60001); 17 May 2005 18:23:49 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=eGzcCkMFdp7+RTqfqk0Wu4r+KTV0r0UUa4W+fxiy5BapAgdiXS4lvZJ2saMwZghHvltjsj8f1Kug1n/5tfz2P28/OBqYYZF4lixPSZYsP5QclNCSZPqKnKZ0JjJeRTDle7STgXyoCcugCrLHSRb4p8gCEp+DhHnpE6JURSxwySE= ; Message-ID: <20050517182349.30278.qmail@web41115.mail.yahoo.com> Received: from [220.226.8.216] by web41115.mail.yahoo.com via HTTP; Tue, 17 May 2005 11:23:49 PDT Date: Tue, 17 May 2005 11:23:49 -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:55 -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 Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html