Configuring MySQL Workbench with MAMP on Mac OS X Lion


Installing MAMP on Mac OS X Lion is surely an easy way of getting Apache, PHP and MySQL working on your system. If you plan on using MySQL Workbench you will need to do some additional steps.

  1. Create the missing my.cnf file.
    1. Open a terminal window.
    2. Create the file by typing:
      sudo touch /etc/my.cnf
    3. Change the owner of the file to your username:
      sudo chown fraki /etc/my.cnf
  2. Create a new server instance and shown in my previous post: MAMP, MySQL Workbench and WordPress setup guide
  3. Edit the server instance settings as follows:
    1. Set the MySQL Server start command to:
      /Applications/MAMP/bin/startMysql.sh
    2. Set the MySQL Server stop command to:
      /Applications/MAMP/bin/startMysql.sh
    3. Set the MySQL Server status command to:
      ps xa | grep “/Applications/MAMP/Library/bin/[m]ysqld”
Configuring MySQL Workbench on OS X Lion with MAMP

Keep checking through the guide for additional configuration.

Advertisements

Author: Frankie Inguanez

I am a Data & Software Consultant from Malta with a specialisation in Business Intelligence & Data Mining. Currently, a senior lecturer and software developer at MCAST focusing on Databases, Business Intelligence and Applied Computational Intelligence modules at degree level. As a developer, I have been working on the development of a management information system together in a small team using PostgreSQL, Spring, Jira, Confluence, Git, amongst other tools. My first degree was a B.Sc.(Hons.) at the University of Malta then I graduated at De Montfort University in M.Sc. Business Intelligence Systems and Data Mining where I was recognised with the Best Student and Best Project awards. My postgraduate research was then presented and published in an IEEE conference in Berlin in 2016. During my free time, I try to find a balance between photography, diving, guitar playing and an occasional camping or walk in the countryside.

One thought on “Configuring MySQL Workbench with MAMP on Mac OS X Lion”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s