0

I'm using mysql and mysqldump and I'm using MAMP.

I have to put --socket=/Applications/MAMP/tmp/mysql/mysql.sock in every CLA mysql commands

How can I use mysql command in CLI without using that boring line (--socket=/Applications/MAMP/tmp/mysql/mysql.sock) ?

Ho yes, I'm on OSX.

Thanks to read me

4

1 回答 1

0

搜索您的 my.conf 文件,并检查其中的套接字路径:

...
[mysqld]
socket=/path/to/socket
...

(首先点击“mysql config socket path”谷歌搜索

于 2012-07-04T10:00:52.407 回答