From owner-freebsd-questions@FreeBSD.ORG Tue Jun 14 14:49:22 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 E6F5D106564A for ; Tue, 14 Jun 2011 14:49:22 +0000 (UTC) (envelope-from glenn@bnetmd.net) Received: from cernan.electric.net (smtp-out-39.electric.net [72.35.23.39]) by mx1.freebsd.org (Postfix) with ESMTP id BA4848FC1A for ; Tue, 14 Jun 2011 14:49:22 +0000 (UTC) Received: from 1QWUvh-0004a3-Ut by cernan.electric.net with emc1-ok (Exim 4.76) (envelope-from ) id 1QWUvh-0004au-VQ for freebsd-questions@freebsd.org; Tue, 14 Jun 2011 07:49:21 -0700 Received: by emcmailer; Tue, 14 Jun 2011 07:49:21 -0700 Received: from [10.86.5.46] (helo=fuse246.electric.net) by cernan.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QWUvh-0004a3-Ut for freebsd-questions@freebsd.org; Tue, 14 Jun 2011 07:49:21 -0700 Received: from mailanyone.net by fuse246.electric.net with esmtpa (MailAnyone extSMTP glenn@bnetmd.net) id 1QWUvg-0006kD-Dh for freebsd-questions@freebsd.org; Tue, 14 Jun 2011 07:49:21 -0700 Message-ID: <2DA8538A0B6947089C33DB97CAF2E918@GLENN2> From: "Glenn McCalley" To: References: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> <4DF771B7.4090104@my.gd> Date: Tue, 14 Jun 2011 10:49:18 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Outbound-IP: 10.86.5.46 X-Env-From: glenn@bnetmd.net X-PolicySMART: 1273431 X-Virus-Status: Scanned by VirusSMART (c) X-Mailman-Approved-At: Tue, 14 Jun 2011 14:56:09 +0000 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:49:23 -0000 ----- Original Message ----- From: "Damien Fleuriot" To: Sent: Tuesday, June 14, 2011 10:35 AM Subject: Re: mysql_connect error > 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. >> >> > > > 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. > Thanks Damien, Did so, mysql definitely checked, no help. I did see that gd was not checked so checked that, did the make process and that cured another problem so I'd say the reinstall did in fact take. The error happens when being run from the command line. Does that make a difference? Glenn.