问题描述

docker restart mysql后,执行docker exec -it mysql bash 出现此问题

问题排查

查看docker日志

docker logs --tail 50 --follow --timestamps mysql

Error如下

解决方式

此问题是由于my.cnf文件中secure-file-priv= NULL引起,将secure-file-priv值修改为secure-file-priv="" 或secure-file-priv= /tmp/,问题解决

对比测试

此问题出现在轻量应用服务器中,云服务器目前没有发现存在此问题

Mysql secure-file-priv参数说明

描述:

secure-file-priv参数是用来限制LOAD DATA, SELECT … OUTFILE, and LOAD_FILE()传到哪个指定目录的

secure_file_priv的值说明

  1. secure_file_priv的值为null ,表示限制mysqld 不允许导入|导出
  2. 当secure_file_priv的值为/tmp/ ,表示限制mysqld 的导入|导出只能发生在/tmp/目录下
  3. 当secure_file_priv的值没有具体值时,表示不对mysqld 的导入|导出做限制

Error response from daemon: Container XXX is restarting, wait until the container is running相关推荐

  1. docker进入容器时报错 Error response from daemon: Container xxx is restarting, wait until the container is

    使用docker run命令运行容器,再进入容器时报错 运行容器命令 docker run --restart=always --name mongo -v /data/mongo:/data/db ...

  2. 解决:Error response from daemon: Cannot restart container xxx: driver failed programming external

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 我的情况:个人站点访问不了,重启了阿里云ECS服务器后,发现服务器 80端口不通,于是重启了 ...

  3. docker: Error response from daemon: Conflict. The container name xxx is already in use by container

    docker: Error response from daemon: Conflict. The container name xxx is already in use by container ...

  4. Error response from daemon: Container xxx is not running的解决方法

    进入容器并且想启动时,提示还没有启动该id [root@chongba-docker ~]# docker exec -it chongba_mysql bash Error response fro ...

  5. docker容器启动失败:Error response from daemon: Container xxx is not running

    启动容器: Error response from daemon: Container 0a1dfb5472726f79056202e9d140b6c28189d326fb595a539f7cc151 ...

  6. docker 错误:Error response from daemon: cannot stop container: connect: connection refused: unknown...

    docker 错误:Error response from daemon: cannot stop container: 795e4102b2de: Cannot kill container 795 ...

  7. Error response from daemon: Conflict. The container name /mysql is already in use by container

    执行: docker run --name mysql -p 3306:3306 -v /root/bo/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWOR ...

  8. 创建docker容器时出现 docker: Error response from daemon, The container name is already in use by container

    问题: 服务器关机后,重新启动,然后启动docker container的时候,出现报错"docker: Error response from daemon, The container ...

  9. 【解决方案】Error response from daemon: Conflict. The container name /mongo is already in use by contain

    一.错误信息 /usr/bin/docker-current: Error response from daemon: Conflict. The container name "/mong ...

  10. 【已解决】ocker: Error response from daemon: Conflict. The container name “/nginx“ is alrea.....

    Docker Run 报错 docker: Error response from daemon: Conflict. The container name "/nginx" is ...

最新文章

  1. 转载-Android数据库高手秘籍(一)——SQLite命令
  2. java基础知识点_「Java面试题/知识点精华集」20000+字的Java基础知识篇(2020最新版) !
  3. Linux core dump的详细介绍及使用
  4. nonlocal python3_Python3中 对local和nonlocal 关键字的认识
  5. html怎么循环输出_for 循环疑难点
  6. 谷歌浏览器flash崩溃怎么办 Google Chrome flash崩溃解决方法
  7. Excel 【小型成绩分析系统初稿】(功能及适应性有待完善)
  8. Web前后端笔记-通过对称加密算法和信息摘要算法防止数据重放
  9. BZOJ3240 NOI2013矩阵游戏(数论)
  10. 逆袭进大厂:程序员究竟该如何学好前端?
  11. matlab_exercise(2)----输入一个三位数,依次输出其个位数字,十位数字,百位数字...
  12. Linux下安装常用软件
  13. Linux下怎么mount下载宝硬盘为本地目录
  14. 机器人 python 极客入门_机器人Python极客编程入门与实战
  15. 服饰搭配:色彩与材质
  16. office 2016安装包下载
  17. 小米2019秋招笔试真题--厨艺大赛奖金
  18. MyIE4.0又回来了,GreenBrowser后续开发,重新开源,大赞
  19. 图像放缩以及亚像素显示
  20. 华为云CDN如何加速ECS资源?

热门文章

  1. LCS (动态规划)
  2. 因果推断what if
  3. 淘宝数据库,主键如何设计以及自增ID的问题
  4. 科学计算机反导按键,backspace是哪个键?最实用按键的大 揭秘
  5. Lenovo家用台式与一体机预装Win8改装Win7的解决方案
  6. Elastic 7.9 版本发布,提供免费的 Workplace Search 和终端安全功能
  7. JS: 自定义右键操作列表 Context Menu
  8. 创新科技普济天下,华为无线重构世界
  9. C#编译报错:名称必须是命名空间名
  10. IoT产品安全基线(一)硬件安全