mac book install MySQL

mac book install MySQL

Reference: https://easyengine.io/tutorials/mac/osx-brew-php-mysql-nginx/

Installing MySQL on Mac OS X

Run following command:

brew install mysql --enable-debug

In case you need mysql-workbench, please download it from here. It cannot be installed via brew.

 

MySQL service management

Manual Start/Stop

Start mysql: /usr/local/mysql/support-files/mysql.server start

Stop mysql: /usr/local/mysql/support-files/mysql.server stop

See other options – /usr/local/mysql/support-files/mysql.server -h 

Usage: mysql.server {start|stop|restart|reload|force-reload|status} [ MySQL server options ]

For example, to start the MySQL service:

localhost:Downloads whuanghkl$ mysql.server start

Starting MySQL

 

. SUCCESS! 

 

Set MySQL password

Changes to MySQL Config (optional)

For security

 
Run following command to improve security of your mysql setup. It will present you wizard to set mysql root password among other things.
mysql_secure_installation

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327043265&siteId=291194637