Installing MySQL on Mac OS-X

SQL is currently and the future of Analytics language. The SQL language is the most suitable for analytics because it is declarative. That means “You declare the goal and the machine figures out the process and executes it”.

MySQL is one of the most advanced open source relational database management systems and is managed by Oracle Inc. You can practice SQL queries on MySQLWorkbench post installation as follows:

Installing MySQL in MAC OS-X – EL Capitan 10.11.2

Download the latest files from the Oracle Inc. website after registering yourself on the website.

  • mysql-5.7.10-osx10.10-x86_64.dmg
  • mysql-workbench-community-6.3.6-osx-x86_64.dmg


$ mysql restart

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

Command to start the server is not configured. Please set the command that must be used to start the server in the remote management section of this connections settings.


$ sudo chown -R _mysql:_mysql /usr/local/var/mysql
$ sudo mysql.server start
Starting MySQL