Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2011 12:46:06 -0300
From:      Rodrigo Gonzalez <rjgonzale@estrads.com.ar>
To:        freebsd-questions@freebsd.org, glarkin@freebsd.org
Cc:        Glenn McCalley <glenn@bnetmd.net>
Subject:   Re: mysql_connect error
Message-ID:  <201106141246.06598.rjgonzale@estrads.com.ar>
In-Reply-To: <4DF77D8C.9060802@FreeBSD.org>
References:  <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> <2DA8538A0B6947089C33DB97CAF2E918@GLENN2> <4DF77D8C.9060802@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106141246.06598.rjgonzale>