csdn2750 2021-03-19 15:46 采纳率: 0%
浏览 275

Can't find error-message file

2021-03-19 07:39:13+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started.
2021-03-19 07:39:13+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2021-03-19 07:39:13+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started.
2021-03-19 07:39:13+00:00 [Note] [Entrypoint]: Initializing database files
2021-03-19T07:39:13.713700Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-19T07:39:13.713831Z 0 [ERROR] Can't find error-message file '/usr/share/mysql/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2021-03-19T07:39:14.676676Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-03-19T07:39:14.842133Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-03-19T07:39:14.908008Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 344849ac-8886-11eb-a0e1-0242ac110002.
2021-03-19T07:39:14.911602Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-03-19T07:39:15.805183Z 0 [Warning] CA certificate ca.pem is self signed.
2021-03-19T07:39:16.084377Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.

 

 

 

运行命令如下

docker run --name mysql01 -p 3306:3306 -v /home/mysql01/data:/var/lib/mysql -v /home/mysql01/conf:/etc/mysql/ -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7.33		
  • 写回答

1条回答 默认 最新

  • 憧憬blog 2023-03-14 22:52
    关注

    根据上述日志错误信息,这是由于在容器中找不到mysql的错误消息文件 '/usr/share/mysql/errmsg.sys' 导致的。需要检查 'lc-messages-dir' 配置指令和错误信息文件的位置是否正确。可能是在挂载配置文件目录时指定的位置不正确,或者是容器内部directory路径的设置出现了问题。建议检查容器的挂载目录和相关的配置文件是否正确,以及重新指定错误信息文件的位置。

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料