MySQL 5.7.13 installation configuration notes (Mac OS) _mysql

Source: Internet
Author: User

First, MySQL5.7.13 installation
to MySQL official online http://dev.mysql.com/downloads/mysql/, download MySQL can install the DMG version
mysql-5.7.13-osx10.11-x86_64. DMG
The downloaded files are: mysql-5.7.13-osx10.11-x86_64. dmg
Click on the installation package step-by-Step installation on the line.
System Preferences in the other, click on the "MySQL" icon
Click the start MySQL server button to start MySQL

Second, open the terminal, the definition of MySQL alias
Enter the alias command
alias Mysql=/usr/local/mysql/bin/mysql
carriage return, in the input
alias Mysqladmin=/usr/local/mysql/bin/mysqladmin

Third, set the MySQL root account password
(Note that the initial password system after installation will generate a random password, the way to notify the balloon)
mysqladmin-u root Password initial password
//If the setup is complete, you need to modify it, execute the command
mysqladmin-u root-p Password New password
then prompts for the password, enter the old password at this time, carriage return

Four, the connection database
mysql-u root-p
then prompt for the password and enter the password you just set
If you are logged on to a MySQL database on a remote host
Mysql-h host Address-u user name-P user Password
And then there's a long absence of mysql>.
Done.

The above is the Mac OS environment MySQL 5.7.13 installation tutorials, I hope to help you learn.

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.