Home  >  Article  >  Database  >  mac 安装mysql

mac 安装mysql

WBOY
WBOYOriginal
2016-06-07 15:40:061212browse

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文件夹的同一层目录执行此命令。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn