Three ways to start mysql under Mac

Find mysql in the system settings to start mysql
insert image description here
Use the following command to start mysql
sudo sudo /usr/local/mysql-5.7.31-macos10.14-x86_64/support-files/mysql.server
insert image description here

If you have made a global configuration, you can use the following command
sudo mysql.server start
insert image description here

The first password is the computer password
and the second password is the mysql password
insert image description here

Guess you like

Origin blog.csdn.net/qq_45560230/article/details/128793491