Mac install MySQL

Source: Internet
Author: User
Tags mysql client

  Download install MySQL1. Visit MySQL website: http://dev.mysql.com/downloads/2. Download MySQL Community server:3.select Platform The default is Mac OS. , choose your favorite suffix file to download, I choose Dmg:4. You can choose the bottom "no thanks,just take Me to downloads!", and then download:  5. Double-click the downloaded DMG and double-click the pkg to install:  Requires 1.16g:  6. Installation Complete, note the password:  7. In System Preferences, you can start mysql:  double-click MySQL, start:   8. Enter the following code in the terminal, You can see the MySQL folder: $ cd/usr/local Enter the following code, login to MySQL, but error command not found:$ mysql-uroot-p-bash:mysql:command not found directly write full The path can be logged in: $/usr/local/mysql/bin/mysql-uroot-p After entering the password, the login succeeds:  exit mysql:mysql> \ Q with GUI interface Workbench manage MySQL database Quora on the list of the better clients, I choose MySQL workbench:what is the best MySQL client for Mac OS X or windows?1. Login my SQL official website, download workbench:http://dev.mysql.com/downloads/workbench/  2. After you drag the installation:   installation is complete, MySQL Workbench.app can be seen in the application. Click to open: 3. Next, connect the MySQL workbench to the MySQL database, and then manage the database. Click "MySQL Connections" to the right of the plus sign, fill out connetion name and password after clicking OK, the other is the default. Can complete a connection to the local database connection:  added, the main interface will appear on the connection just established:  click on the connection, the password expiration prompt, change password:   4. Enter this database with a new passwordInterface:   then you can go to the official website to see the guide to learn how to use the:http://dev.mysql.com/doc/workbench/en/wb-sql-editor.html 

[Email protected] ~]#/usr/local/mysql/bin/mysql-u root-p

error message ::-bash:mysql:command not found

$ cd/usr/local/bin/

$ sudo ln-fs/usr/local/mysql/bin/mysql mysql

Re-starting MySQL

Mac install MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.