From owner-freebsd-questions@FreeBSD.ORG Tue Jun 14 14:35:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D50D1106564A for ; Tue, 14 Jun 2011 14:35:42 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 729758FC17 for ; Tue, 14 Jun 2011 14:35:40 +0000 (UTC) Received: by wyf23 with SMTP id 23so6152046wyf.13 for ; Tue, 14 Jun 2011 07:35:39 -0700 (PDT) Received: by 10.227.205.69 with SMTP id fp5mr1842312wbb.97.1308062138216; Tue, 14 Jun 2011 07:35:38 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id e1sm5081145wbh.56.2011.06.14.07.35.36 (version=SSLv3 cipher=OTHER); Tue, 14 Jun 2011 07:35:36 -0700 (PDT) Message-ID: <4DF771B7.4090104@my.gd> Date: Tue, 14 Jun 2011 16:35:35 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> In-Reply-To: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: mysql_connect error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2011 14:35:42 -0000 On 6/14/11 2:46 PM, Glenn McCalley wrote: > Seen other people have this problem but cannot get their resolutions to > work for me. > > "Fatal error: Call to oundefined function mysql_connect() in etc., etc." > > This began happening after an upgrade to php5 using the portmaster program. > phpinfo page does -not- show the mysql_connect function anywhere. > phpinfo page is at www9.bnetmd.net/index.php if you have the desire to > look. > > Suggestions from lists/boards seem to all point to mysql.so not being in > the php library, yet a "find" shows it is in there. > > pkg_info shows "php5-mysql-5.3.5 The mysql shared extension for php" > > extensions.ini shows "extension=mysql.so" > > Is there anywhere/anything else to look/do? > > Thanks! > Glenn. > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" If I were you, I would reinstall the php5 mysql extension like so: cd /usr/ports/lang/php5-extensions make config # make sure you tick the MYSQL option make clean make make deinstall && make reinstall Then, restart your web server or PHP FCGI process, as applicable. You should be cool.