Learn hive need, gossip not to say the contents of this article:
- Download MySQL for Mac
- Download MySQL Workbench
- Install MySQL and MySQL Workbench
- Configuring the environment variables for MySQL on OS systems
- Go to MySQL
1. Download MySQL for mac:http://dev.mysql.com/downloads/
Note that the download at the end is a. dmg format file, which is a mistake .....
2. Download MySQL workbench:http://dev.mysql.com/downloads/
Same address as MySQL
3, the fool installs the MySQL and the MySQL Workbench
Note: Mysql Installation path:/usr/local/mysql
MySQL installation is completed, will generate a root account and a random initial password, copy the password to a place to save good, this does not care
Install Workbench, enter Workbench, will prompt the password has expired, paste the initial random password into the old password, and then enter a new password
To open the MySQL service:
Open Services, Mysql-I, System preferences, other
4. Configuration of MySQL environment variable
A) Create a file
sudo touch/etc/paths.d/mysql
b) Open with Vim:
sudo vim/etc/paths.d/mysql
c) Edit the file and add the following: (if not edited, save ....) )
/usr/local/mysql/bin
5. Go to MySQL
Terminal Entry command: Re-enter the password
Mysql-u root-p
~ All done!
Install MySQL configuration mysql environment variable under OS system