mysql installation of mac install mysql environment

1. Download the file

https://dev.mysql.com/downloads/mysql/5.6.html#downloads

Here Insert Picture Description

2. Install

Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description

Here Insert Picture Description
Continued Well, not repeat them here

3. Note that here, the first installation there is no prompt to change the password, so we need to change passwords

3.1. First stop service

Here Insert Picture Description

Here Insert Picture Description

Here Insert Picture Description

3.2. Prohibition mysql authentication

Execute the following two commands

cd /usr/local/mysql/bin/
# 禁止mysql的密码输入验证功能
sudo ./mysqld_safe --skip-grant-tables    

Here Insert Picture Description

4. Re-open a client

Here Insert Picture Description

4.1. Change Password

cd /usr/local/mysql/bin/
./mysql

mysql command

FLUSH PRIVILEGES;
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('root');

As shown below

Here Insert Picture Description

5. Connect

Here Insert Picture Description

Published 261 original articles · won praise 37 · Views 200,000 +

Guess you like

Origin blog.csdn.net/u014636209/article/details/100812084