数据库 用 homebrew 安装 mysql 之后,可以启动但是 which mysql 显示 mysql: aliased to nocorrect mysql

qyl · 2014年02月28日 · 最后由 zj0713001 回复于 2014年02月28日 · 5490 次阅读

用的 zsh,PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin"

先试试 berw info mysql

2楼 已删除

#1 楼 @leekelby 似乎正常。关于那个/etc/my.cnf,我确定我没有。

———————————————— mysql: stable 5.6.16 (bottled) http://dev.mysql.com/doc/refman/5.6/en/ Conflicts with: mariadb, mysql-cluster, mysql-connector-c, percona-server /usr/local/Cellar/mysql/5.6.16 (9424 files, 349M) * Poured from bottle From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/mysql.rb ==> Dependencies Build: cmake ✘ ==> Options --enable-debug Build with debug support --enable-local-infile Build with local infile loading support --enable-memcached Enable innodb-memcached support --universal Build a universal binary --with-archive-storage-engine Compile with the ARCHIVE storage engine enabled --with-blackhole-storage-engine Compile with the BLACKHOLE storage engine enabled --with-embedded Build the embedded server --with-tests Build with unit tests ==> Caveats 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

应该是 mysqld 才对,看看能正常使用不。

which mysql mysql: aliased to nocorrect mysql

which mysqld /usr/local/bin/mysqld

mysql 还是直接下载 dmg 安装吧 轻松加愉快

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册