Rumah > Artikel > pangkalan data > mac 安装mysql
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文件夹的同一层目录执行此命令。