Installation tutorial for mysql5.7.10 in Mac, macmysql5.7.10
The following figure shows how to install and configure mysql on Mac.
Install mysql using the installation package
Double-click the pkg file to install
All the way down, remember to save the password in the last pop-up box (it is your mysql root Account Password)
Under normal circumstances, the installation is successful.
In this case, the installation is successful, but additional configuration is required:
(1) enter/usr/local/mysql/bin to check whether mysql exists in this directory. For details, see pic6.
(2) execute vim ~ /. Bash_profile
Add the mysql/bin directory to this file. For details, see pic7:
PATH = $ PATH:/usr/local/mysql/bin
After adding the file, Press esc and enter wq to save the file.
Finally, enterSource ~ /. Bash_profile
Now you can log on to mysql through mysql-uroot-p, and you will be asked to enter the password (that is, the password shown on the image). After the login is successful, you can change the password through the following command
Set password for 'root' @ 'localhost' = PASSWORD ('newpass ')
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.