13
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacOSのMySQLのmy.cnfの場所とその修正方法

Posted at
$ ls $(brew --prefix mysql)/support-files/my-*
/usr/local/opt/mysql/support-files/my-default.cnf

こちらにある内容がデフォルトになる

$ cp $(brew --prefix mysql)/support-files/my-default.cnf /usr/local/etc/my.cnf
$ vi /usr/local/etc/my.cnf

で各種設定を行い

$ mysql.server stop
$ mysql.server start

参考:
http://qiita.com/hkusu/items/cda3e8461e7a46ecf25d
http://stackoverflow.com/questions/7973927/for-homebrew-mysql-installs-wheres-my-cnf

13
11
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
13
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?