[root@iZ2ze1901ra2gvxe7dff8hZ mysql-5.6.21]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --datadir=/mnt/data/
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.
https://help.aliyun.com/document_detail/50700.html?spm=5176.product25365.6.653.RCm1Wl 根据官网的文档装的 到初始化就错了 源码编译
题主您好,
请问您是从源码编译安装mysql的吗?
一般来说,如果是通过yum或apt的管理工具来安装的话,会自动初始化好mysql。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。