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

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 IDEA构建失败?怎么搞
    • ¥15 求该题的simpson,牛顿科特斯matlab代码,越快越好
    • ¥30 求解,有偿,可商量价格
    • ¥15 编译arm板子的gcc
    • ¥15 C++代码报错问题,c++20协程
    • ¥15 c++图Djikstra算法求最短路径
    • ¥15 Linux操作系统中的,管道通信问题
    • ¥15 ansible tower 卡住
    • ¥15 等间距平面螺旋天线方程式
    • ¥15 通过链接访问,显示514或不是私密连接