MySQLインストール

brewさん強力です。瞬殺で終了

lion:apache2 jun$ brew install mysql

Warning: Your Xcode (4.6) is outdated

Please install Xcode 4.6.1.

Warning: It appears you have MacPorts or Fink installed.

Software installed with other package managers causes known problems for

Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.1

######################################################################## 100.0%

==> Pouring mysql-5.6.10.mountain_lion.bottle.tar.gz

==> Caveats

Set up databases to run AS YOUR USER ACCOUNT with:

unset TMPDIR

mysql_install_db –verbose –user=`whoami` –basedir=”$(brew –prefix mysql)” –datadir=/usr/local/var/mysql –tmpdir=/tmp

To set up base tables in another folder, or use a different user to run

mysqld, view the help for mysql_install_db:

mysql_install_db –help

and view the MySQL documentation:

* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html

* http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html

 

 

To run as, for instance, user “mysql“, you may need to `sudo`:

sudo mysql_install_db …options…

A “/etc/my.cnf” from another install may interfere with a Homebrew-built

server starting up correctly.

To connect:

mysql -uroot

To have launchd start mysql at login:

ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents

Then to load mysql now:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

Or, if you don’t want/need launchctl, you can just run:

mysql.server start

==> Summary

🍺 /usr/local/Cellar/mysql/5.6.10: 9244 files, 351M

lion:apache2 jun$

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です