Start MySQL under Mac platform to fully terminate mysql----Terminal eight step walk

Source: Internet
Author: User
Tags mysql client

1, select the Finder, the shortcut key into the search directory:/usr/local and then into the MySQL directory:

2. Right click "Start Here" to open the terminal:

3, input execution:./scripts/mysql_install_db

4, after execution, enter the bin directory, and then execute mysqld:

5, so the MySQL server side started successfully. Then we press command+t, new open a terminal window bash,-u represents the current user, so the MySQL client opens,

Then enter Cd/usr/local/mysql/bin carriage return

Enter Mysql-u root to enter the interface to interact with MySQL

6. Exit after Interaction:

7, this just shut down the MySQL, then also need to close the running mysqld, I know a more violent direct method, first look at the MySQL process number:

Input: Ps-ef |grep MySQL

8, Input: kill-9 (./mysqld Front second number, here is 627) then enter

Input: Ps-ef |grep MySQL can continue to see if the process is not in:

Start MySQL under Mac platform to fully terminate mysql----Terminal eight step walk

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.