

You can optionally install a startup item that starts the MySQL server when your computer starts. The download also includes a system preference pane for starting/stopping the server. offers a standard MacOS installer package that installs the MySQL Server and several command line utilities. This is the fastest method for installing MySQL on your Mac, but only available for Intel processors. We have provided links to the most common installation methods for Mac OS X. There are several different ways to install MySQL on Mac OS X. (See Web Hosting Providers for a list of hosting options). Most webservers and website packages will include a MySQL installation as part of the services they provide, and usually provide external connection details to allow you to connect to them in an external program like Sequel Pro. You will have to install a copy on your local machine, or connect to the MySQL server on a machine somewhere on the Internet. If you want to set startup, execute the following command mkdir -p ~/Library/LaunchAgentsĬP / usr / local / cell / MySQL / 5.6.16/ ~ / library / launchagents / ා 5.6.16 is the database version number, which is modified according to the version number you installed at that time launchctl load -w ~/Library/LaunchAgents/ OS X doesn't ship with its own copy of MySQL, nor does Sequel Pro. If there is no password at the beginning, enter the database directly Then prompt to enter the database password. Mysql_install_db –verbose –user= root –basedir=”$(brew –prefix mysql)” –datadir=/usr/local/var/mysql –tmpdir=/tmp Next, start MySQLĪfter startup, you can log in. Search the Internet for half a day, find solutions and execute them in turn unset TMPDIR When the installation is completed successfully, an error is reported when you want to log in: ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) For what brew is, how to install it, it is recommended to check it on the brew official website, with the address: brew official websiteĪfter installation, it is very convenient to install other software. Undoubtedly, installing a brew is a good choice. Recently, the MAC system has been reinstalled, and all commonly used software needs to be reinstalled.
