mysql 5.5.32 多实例环境的启动问题

  [root@localhost scripts]# /bin/sh mysql_install_db --user=mysql --dasedir=/application/mysql --datadir=mysql 5.5.32 多实例环境的启动问题ar/webdb/3307/data

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.

另外有一个问题,有点相似,当我在apache主机上使用mysql 5.5.54 二进制包时,在 /bin/sh mysql_install_db时同样出现这个问题,唯独是没有./bin
后来查看了一下mysql.server的代码,发现二进制包的 --basedir 应该直接写安装包目录(因为本身就是安装好的),也可以不写,因为--basedir只有在编译安装时才会用到

FATAL ERROR: Could not find my_print_defaults