From owner-freebsd-questions@FreeBSD.ORG Tue Jun 14 15:46:12 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 C82D81065678 for ; Tue, 14 Jun 2011 15:46:12 +0000 (UTC) (envelope-from rjgonzale@estrads.com.ar) Received: from oproxy3-pub.bluehost.com (oproxy3-pub.bluehost.com [69.89.21.8]) by mx1.freebsd.org (Postfix) with SMTP id 7CE958FC17 for ; Tue, 14 Jun 2011 15:46:12 +0000 (UTC) Received: (qmail 25014 invoked by uid 0); 14 Jun 2011 15:46:11 -0000 Received: from unknown (HELO box511.bluehost.com) (74.220.219.111) by oproxy3.bluehost.com with SMTP; 14 Jun 2011 15:46:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=estrads.com.ar; h=Received:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:X-Identified-User; b=dzHM6Nbjgg4VFtiXTUeA0L/0AqxGRvjDb+D2xayxrxdJzHo63/fkRya/i9ZOXgnvQUx/EiaTeXHi5oTEWNHORRSH2TcBHO/Il3NtG85mO9SleyoMEChVXX+LqNyutmOS; Received: from 20-72-231-201.fibertel.com.ar ([201.231.72.20] helo=rjgonzale-laptop.localnet) by box511.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QWVog-00057Y-VU; Tue, 14 Jun 2011 09:46:11 -0600 From: Rodrigo Gonzalez To: freebsd-questions@freebsd.org, glarkin@freebsd.org Date: Tue, 14 Jun 2011 12:46:06 -0300 User-Agent: KMail/1.13.7 (Linux/2.6.38.7-30.fc15.i686; KDE/4.6.3; i686; ; ) References: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> <2DA8538A0B6947089C33DB97CAF2E918@GLENN2> <4DF77D8C.9060802@FreeBSD.org> In-Reply-To: <4DF77D8C.9060802@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106141246.06598.rjgonzale@estrads.com.ar> X-Identified-User: {32647:box511.bluehost.com:gonosade:estrads.com.ar} {sentby:smtp auth 201.231.72.20 authed with rjgonzale@estrads.com.ar} Cc: Glenn McCalley 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 15:46:12 -0000 > > Hi Glenn, > > Try running this command in your shell: > > php -i | grep -i php.ini > > Does the reported path match the one reported by your phpinfo page > (viewed in the web browser)? Also, is it possible you have multiple php > executables installed? What is the output of the following commands? > Also run php -m and see that mysql is in list You should check that it is using the same php.ini as Greg said, and if required symlink the files or add extension=mysql.so to the php.ini used by cli