Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php 5.4 installation on Mac OSX Lion from homebrew - mysqli extension missing

I installed php 5.4 from homebrew, and also mysql. I am using the inbuilt Apache Server with websharing.

I have phpMyAdmin installed and it tells me: the mysqli extension is missing.

I did the following steps: in the php.ini I set:

extension = mysqli.so
mysqli.default_socket = "/tmp/mysql.sock"

Then restarted Apache.

When I check with phpinfo() I do not see any Mysql extension. The error in phpMyAdmin is still there.

I basically do not really see how I could check if Mysqli has come with my PHP install or not.

like image 649
Alexandra Avatar asked Jul 30 '12 17:07

Alexandra


1 Answers

You need to install php with mysql support. So if you already have php54 installed, then:

brew uninstall php54

then

brew install php54 --with-mysql

Hope that helps!

like image 67
Andre Lackmann Avatar answered Nov 03 '22 02:11

Andre Lackmann