Build a MySQL environment on the OS X Platform

Source: Internet
Author: User

Build a MySQL environment on the OS X Platform

References:

The simplest way to install MySQL on OS X is to download the Community version DMG package from the official website. The latest version is version 5.7, the installation method has been introduced in reference material 1, but the version 5.5 installation is introduced. The difference is that only one installer is required for version 5.7 installation, rather than installing several programs in 5.5, the installation process is simpler.

After the installation is complete, a dialog box is displayed, as shown in. A default logon password for the local root account is provided. The password is randomly generated and needs to be modified upon the first login. Of course, MYSQLWorkbench is used, it is easy to modify.

After the installation is complete, do not rush to log on to MySQL, because this service is not enabled by default, otherwise the following error message is displayed.

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

First, you need to find the installed mysql setting options in "system preference settings" of OS x, as shown in.

Select this option. The dialog box shown in appears. The current status is "stopped". Click the "" button next to it. After Entering the administrator password, you can see that the mysql service has been started. You can log on to mysql through the command line or client to perform database operations.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.