ブログ - MySQL 5.7.18をmacOS Sierra(10.7)にインストール
パッケージマネージャのHome BrewでMySQLをインストールする.
まずは,パッケージを確認.
公式サイトを見ると,MySQL 5.7.18が最新の模様.バージョンを確認.
MySQL 5.7.18だ.インストールする.
しばらくこのまま何も起こらない...ので一旦中止しようとCtrl+Cを押す.
インストールできた模様.
まずは,パッケージを確認.
zeus:~ server$ 🆑brew search mysql
automysqlbackup mysql-cluster mysql-sandbox mysql@5.5
mysql mysql-connector-c mysql-search-replace mysql@5.6🈁
mysql++ mysql-connector-c++ mysql-utilities mysqltuner
zeus:~ server$
zeus:~ server$ 🆑brew info mysql
mysql: stable 5.7.18 (bottled)🈁
Open source relational database management system
https://dev.mysql.com/doc/refman/5.7/en/
Conflicts with: mariadb, mariadb-connector-c, mysql-cluster, mysql-connector-c, percona-server
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mysql.rb
==> Dependencies
Build: cmake ✘🈁
Required: openssl ✔
==> Requirements
Required: macOS >= 10.7 ✔
==> Options
--with-archive-storage-engine
Compile with the ARCHIVE storage engine enabled
--with-blackhole-storage-engine
Compile with the BLACKHOLE storage engine enabled
--with-debug
Build with debug support
--with-embedded
Build the embedded server
--with-local-infile
Build with local infile loading support
--with-test
Build with unit tests
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To 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
zeus:~ server$
zeus:~ server$ 🆑brew install mysql
Updating Homebrew...
🆑^C==> 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
==> Using the sandbox
==> Caveats
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
To 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
zeus:~ server$