Mysql_install_db cannot find file

前端 未结 6 1453
醉话见心
醉话见心 2021-02-05 20:01

I am trying to use mysql_install_db

I am getting the following error:

FATAL ERROR: Could not find ./bin/my_print_defaults

If you compi

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 20:50

    For me the fix was to point basedir to the actual mysql directory in the cellar, as shown at install.

    eg:

    During installation of mysql (using brew install mysql56), I was shown this path: /usr/local/Cellar/mysql56/5.6.27/bin/mysql_install_db...

    I used that to define the basedir like so:

    mysql_install_db --verbose --user=`whoami` --basedir="/usr/local/Cellar/mysql56/5.6.27" --datadir=/usr/local/var/mysql --tmpdir=/tmp
    

提交回复
热议问题