LoginSignup
5
5

More than 5 years have passed since last update.

homebrewでMySQL環境を構築する

Last updated at Posted at 2013-03-24
$ brew install mysql

MySQLは複数の版を同時に検証するので、版ごとにdatadirをわけて作成しておく。

$ mkdir -p /usr/local/var/mysql-5.6.10
$ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql-5.6.10 --tmpdir=/tmp
$ cd /usr/local/opt/mysql
$ edit my.cnf # datadirを設定する
$ mysqld_safe &
$ mysqladmin -u root password ****
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5