SOLVED – it’s 127.0.0.1, instead of localhost (connected from JSP/Tomcat now too… in there can be either localhost or 127.0.0.1; but in PHP it has to be the IP addresss…)
(and, funny, don’t need port (localhost:3306) like you do in windows… )
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select user, host from user;
+------+------------------------------------+
| user | host |
+------+------------------------------------+
| root | 127.0.0.1 |
| root | ::1 |
| | <myName>s-MacBook-Pro.local |
| root | <myName>s-MacBook-Pro.local |
| root | localhost |
+------+------------------------------------+
5 rows in set (0.00 sec)