开发者

anyone get mysql workbench 5.2 to work with mamp?

i cannot get mysql workbench 5.2 to work. i ha开发者_JAVA技巧ve mamp and mamp pro installed and running and no matter what type of connection i try it just wont connect. what can i do?

i have a mac with snow leopard


In MySQL workbench use Connection Method: Local Connection/Pipe and in the setting Socket/Pipe path enter: /Applications/MAMP/tmp/mysql/mysql.sock then enter your root username/password.


There are two tasks that need to be fixed to get MySQL Workbench working with a MAMP installation:

1) The Start/Stop/Status commands for the MySql server need to changed from the Server Instance configuration to the following:

Set the Start MySQL command to:
/Applications/MAMP/bin/startMysql.sh

Set the Stop MySQL command to:
/Applications/MAMP/bin/startMysql.sh

Set the Check MySQL Status command to:
ps xa | grep "/Applications/MAMP/Library/bin/[m]ysqld"

2) The my.cnf file needs to be created manually and the appropriate permissions given through a terminal window:

Utilities -> Terminal

sudo touch /etc/my.cnf
sudo chown joeb /etc/my.cnf
  • Changed joeb with your username.

If you want a more detailed guide, see MAMP, MySQL Workbench, WordPress installation and setup guide for MAC.


I follwed these instructions and got it to work: http://chrischarlton.us/tip/using-mysql-workbench-mamp-pro

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜