[SOLVED] MYSQL connect problem new project on mac os x and MAMP

Hi all,

I have a fresh install with scriptcase 8

I have installed MAMP PRO the latest version.
I have a working database and i can use phpmyadmin: http://localhost:8888/MAMP/index.php?page=phpmyadmin&language=English
Socket: /Applications/MAMP/tmp/mysql/mysql.sock
When i look in that directory i don’t see a mysql.sock (but only a my.cnf and a mysql.pid

When i start a new project and want to connect to mysql i use:
MySQL DPO
localhost
port 8888

I cannot connect to mysql and get every time the error:
Connection Error

Connection attempt failed: SQLSTATE[HY000] [2002] No such file or directory

What is going wrong and how can i fix this?

Check out http://stackoverflow.com/questions/1676688/php-mysql-connection-not-working-2002-no-such-file-or-directory
Try adressing the localhost as 127.0.0.1 (havent tried this myself).

Thx, it worked for me! Never thought of that :slight_smile: