How to start MySQL on Mac

Source: Internet
Author: User
Tags administrator password

After installing the MySQL service (installation step can refer to series experience 1). Open System Preferences and click on the "MySQL" icon at the bottom.

    1. 2

      In the MySQL dialog box, click the Start MySQL service button.

    2. 3

      In the pop-up window, enter the administrator password, and then click the OK button.

    3. 4

      In the MySQL dialog box, the status of the MySQL service appears as follows: The following status indicates that the MySQL service has been started.

      END
To log in to MySQL using a terminal:
    1. In the Finder's sidebar, click Applications, and then in utilities, double-click the start Terminal command.

    2. In the terminal, enter the command to add the MySQL path:

      Path= "$PATH":/usr/local/mysql/bin

    3. The command to log on to MySQL at the terminal is as follows: Mysql-u root-p

      Then enter the password, and if you do not set the password, press ENTER directly.

    4. If the content is displayed as follows, it is already successfully logged into the MySQL service.

How to start MySQL on Mac

Related Article

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.