首页  >  文章  >  数据库  >  mac 安装mysql

mac 安装mysql

WBOY
WBOY原创
2016-06-07 15:40:061268浏览

mysql_install_db -- verbose -- user = `whoami` -- basedir = $(brew --prefix mysql) -- datadir = /usr/ local /opt / mysql -- tmpdir =/ tmp 如果这里出现一下错误: FATAL ERROR: Could not find ./bin/my_print_defaults If you compiled from sourc

mysql_install_db --verbose --user=`whoami`--basedir="$(brew --prefix mysql)"--datadir=/usr/local/opt/mysql --tmpdir=/tmp  如果这里出现一下错误:

FATAL ERROR: Could not find ./bin/my_print_defaults


If you compiled from source, you need to run 'make install' to

copy the software into the correct location ready for operation.


If you are using a binary release, you must either be at the top

level of the extracted archive, or pass the --basedir option

pointing to that location.

这个错误是说 在你指定的路径找不到 ./bin/my_print_defaults 文件。既需要执行brew --prefix mysql命令去查看mysql安装的路径,在看到 bin文件夹的同一层目录执行此命令。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn