MySql and Navicat in MacOS

MySql and Navicat in MacOS

Exchange blogroll: laker.me
Github:https://github.com/younglaker

Install MySql

Method one

Download the installation file, choose the dmg file:

https://dev.mysql.com/downloads/mysql/

Then install the package step by step.

Method two

Install by command line:

1
brew install mysql

Start MySql

Add system enviroment

Open terminal, I use zsh, so I edit zsh_profile, if you use bash, edit your bash_profile:

$ vim ~/.zsh_profile

Add zsh_profile

$ source ~/.zsh_profile

Login database

Your can use GUI to start or stop sever in system preference :

manage

Or use command line.

Connect to Navicat

New MySQL connection:

connection

Set a name and add password:

config

Done:

success

Import sql file:

Import sql file:

Import

Done, I uesd about 30 minutes to import 2kw items, much faster than my classmates, most of them cost several hours :

Done


MySql and Navicat in MacOS

本文原创自http://laker.me/blog,转载请注明出处,欢迎交换友链

如果本文对您有帮助,微信扫一扫,请我吃个鸡腿吧

评论组件不稳定,有事请联系V信 lakerHQ (请备注来自博客)