I'm getting errors whenever I try to connect locally to mySQL on Mac OS Snow Leopard 10.6.4. I'm running mySQL 5.1.46. I can log in using the console. I'm running PHP 5.3.2 and my phpinfo()
page is working fine. So I've got PHP running, I can log into the mySQL server using both the console and Sequel Pro.
So I suspected that it was a socket issue. In my /etc directory, I don't have php.ini, I have php.ini.default. So I go in there, and every place I see "default_socket" I change it from:
/var/mysql/mysql.sock
to:
/tmp/mysql.sock
I see it in the following locations:
pdo_mysql.default_socket=/tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock
And when I go to connect to phpMyAdmin, I get the following error: Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
And when I look in my phpinfo()
file, I get the following under mySQL:
mysql.default_socket /var/mysql/mysql.sock /var/mysql/mysql.sock
I restart Apache... heck, I restart the whole computer. Still, nothing. I know mySQL is working, I know PHP is working, but I can't get them talking.
Any help?