- 安装Homebrew,详细步骤参见Homebrew官网。
brew doctor
确认brew在正常工作。brew update
更新包。brew install mysql
安装mysql。log如下:
==> Installing dependencies for mysql: openssl
==> Installing mysql dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2l.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2l.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certsand run
/usr/local/opt/openssl/bin/c_rehashThis formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.If you need to have this software first in your PATH run:
echo ‘export PATH="/usr/local/opt/openssl/bin:$PATH"‘ >> ~/.bash_profileFor compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include==> Summary
?? /usr/local/Cellar/openssl/1.0.2l: 1,709 files, 12.2MB
==> Installing mysql
==> Downloading https://homebrew.bintray.com/bottles/mysql-5.7.18_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mysql-5.7.18_1.sierra.bottle.tar.gz
==> /usr/local/Cellar/mysql/5.7.18_1/bin/mysqld --initialize-insecure --user=chenxu --basedir=/usr/local/Cellar/mysql/5.7.18_1 --datadir=/usr/local/var/mysq
==> Caveats
We‘ve installed your MySQL database without a root password. To secure it run:
mysql_secure_installationMySQL is configured to only allow connections from localhost by default
To connect run:
mysql -urootTo have launchd start mysql now and restart at login:
brew services start mysql
Or, if you don‘t want/need a background service you can just run:
mysql.server start
==> Summary
?? /usr/local/Cellar/mysql/5.7.18_1: 321 files, 232.9MB- 后台启动服务:brew services start mysql
- 前台启动服务:mysql.server start
- 安装后的mysql无root密码,登录mysql:mysql -u root -p
macbook install mysql
时间: 2024-10-30 06:28:09
macbook install mysql的相关文章
How to Install MySQL on CentOS 7
How to Install MySQL on CentOS 7 Updated Thursday, August 27th, 2015 by Linode Use promo code DOCS10 for $10 credit on a new account. Try this Guide Contribute on GitHub View Project | View File | Edit File MySQL is a popular database management syst
Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11
1. Change root user Bash su - ## OR ## sudo -i 2. Install MySQL YUM repository Fedora Bash ## Fedora 25 ## dnf install https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm ## Fedora 24 ## dnf install https://dev.mysql.com/get/mysql57
ubuntu install mysql server method
recently try to install mysql in my computer so that I can practise some sql statement on sever.But there are some problem while install mysql package in my ubuntu system.I hava tried lots of ways to move on. at last.I find there is a best way
How to Install MySQL 5.6 from Official Yum Reposit
Tags: MySQL Distribution: CentOS Submitted by: Morgan TockerMySQL Community Manager @ Oracle Introduction In October 2013, the MySQL development team officially launched support for yum repositories. This means that you can now ensure that you have t
install mySQL on RHEL 32bit
3 ways to install mysql # yum install mysql mysql-server # rpm -ivh MySQL-client-5.6.23-1.linux_glibc2.5.i386.rpm MySQL-server-5.6.23-1.linux_glibc2.5.i386.rpm install by binary file (may need to install cmake gcc gcc-c++ ncurses first): a. # tar xvf
yum install mysql(转载)
linux下使用yum安装mysql 1.安装查看有没有安装过: yum list installed mysql* rpm -qa | grep mysql* 查看有没有安装包: yum list mysql* 安装mysql客户端: yum install mysql 安装mysql 服务器端: yum install mysql-server yum install mysql-d
How to Install MySQL
Install MySQL from zip on windows 10: Download MySQL first, then extract MySQL to directory, derectory location can be anywhere but I suggest don't use space character on it's name. now we need create file my.ini for MySQL configuration inside it's d
Install MySQL 5.7.5-m15 on Ubuntu Server 14.04 LTS from Source
This post documents the steps of installing MySQL from source code, and the resolutions to serveral issues in installing. The steps here are specific to 64-bit Ubuntu 14.04.1 LTS, and MySQL source code is 5.7.5-m15. But I think most of them can also
Install MySQL on Mac by Homebrew
1. 安装mysql brew update brew install mysql 2. 启动mysql mysql.server start 3. 登录mysql mysql -uroot -p 密码为空,直接回车,即进入mysql 4. 退出mysql Control+Z