首页 > 代码库 > FATAL ERROR: Could not find ./share/fill_help_tables.sql

FATAL ERROR: Could not find ./share/fill_help_tables.sql

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --user=mysql
FATAL ERROR: Could not find ./share/fill_help_tables.sql

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.

 加上参数--basedir=

问题解决:

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --basedir=/apps/mysql-5.6.33/ --user=mysql

 

FATAL ERROR: Could not find ./share/fill_help_tables.sql