MAC install download good. GZ package (not like. DMG directly double-click on the line)

Source: Internet
Author: User

After downloading, unzip it and then hit the command in Terminal:


复制文件:蓝色部分为你解压文件的路径,直接拖到这里就行了
$ sudo mv mysql-5.1.45-osx10.6-x86_64文件路径 /usr/local/mysql

接下来切换到:
$ cd /usr/local
$ sudo chown -R mysql:mysql mysql
$ cd mysql
$ sudo scripts/mysql_install_db --user=mysql
$ sudo chown -R root .
$ sudo chown -R mysql data

Then CD bin with

$ sudo cd bin/


$ sudo ./mysql_secure_installation
To modify the root password, which is empty by default, is obviously less secure, and is then configured as appropriate, as the development environment is less restrictive.

$ sudo ./mysqld_safe
To start MySQL

$ sudo ./mysql -u root -p
Enter the root password you just set to log in to MySQL

$ sudo ./mysqld_safe stop
Stop MySQL

MAC install download good. GZ package (not like. DMG directly double-click on the line)

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.