Home > Database > Mysql Tutorial > body text

mac 安装mysql

WBOY
Release: 2016-06-07 15:40:06
Original
1211 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!