Mac install MySQL

Source: Internet
Author: User

Download Mysql-5.7.14-osx10.11-x86_64.tar

# 移动解压后的二进制包到安装目录sudo mv mysql-5.6.24-osx10.9-x86_64 /usr/local/mysql# 更改 mysql 安装目录所属用户与用户组cd /usr/localsudo chown -R root:wheel mysql
cd /usr/local/mysqlsudo bin/mysqld --initialize --user=mysql
cd /usr/local/mysql# 启动sudo support-files/mysql.server start# 重启sudo support-files/mysql.server restart# 停止sudo support-files/mysql.server stop# 检查 MySQL 运行状态sudo support-files/mysql.server status
# 需要 MySQL 在运行状态执行cd /usr/local/mysql/bin./mysqladmin -u root password <your-password>
cd /usr/local/mysql/bin./mysql -u root -p<your-password>

 

Mac install MySQL

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.