开发者社区> 问答> 正文

mysql 初始化出错

[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.

展开
收起
eeecm 2017-05-24 13:52:52 2439 0
3 条回答
写回答
取消 提交回答
  • 请问这个问题解决了吗? 我也遇到这个问题。。

    2019-07-17 21:12:52
    赞同 展开评论 打赏
  • https://help.aliyun.com/document_detail/50700.html?spm=5176.product25365.6.653.RCm1Wl 根据官网的文档装的 到初始化就错了 源码编译

    2019-07-17 21:12:51
    赞同 1 展开评论 打赏
  • 旺旺:nectar2。

    题主您好,

    请问您是从源码编译安装mysql的吗?

    一般来说,如果是通过yum或apt的管理工具来安装的话,会自动初始化好mysql。

    2019-07-17 21:12:51
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像