通过以下命令不能启动容器:

docker run --name db -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d -p 3306:3306 -v /Users/user/Desktop/db/mysql/data:/var/lib/mysql -v /Users/user/Desktop/db/mysql/cnf:/etc/mysql/conf.d mysql

已经更新了宿主机mysql目录权限:

chmod -R 777 /Users/user/Desktop/db/mysql

PS: 如果只挂载conf.d则可以正常运行

Initializing database

2018-07-04T01:20:04.193456Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.

2018-07-04T01:20:04.193712Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.11) initializing of server in progress as process 26

2018-07-04T01:20:04.198022Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive

mbind: Operation not permitted

2018-07-04T01:20:05.044093Z 1 [ERROR] [MY-012592] [InnoDB] InnoDB: Operating system error number 13 in a file operation.

2018-07-04T01:20:05.044352Z 1 [ERROR] [MY-012595] [InnoDB] InnoDB: The error means mysqld does not have the access rights to the directory.

2018-07-04T01:20:05.044409Z 1 [ERROR] [MY-000000] [InnoDB] InnoDB: Assertion failure: fil0fil.cc:2423:success

InnoDB: thread 140676164908800

InnoDB: We intentionally generate a memory trap.

InnoDB: Submit a detailed bug report to http://bugs.mysql.com.

InnoDB: If you get repeated assertion failures or crashes, even

InnoDB: immediately after the mysqld startup, there may be

InnoDB: corruption in the InnoDB tablespace. Please refer to

InnoDB: http://dev.mysql.com/doc/refman/8.0/en/forcing-innodb-recovery.html

InnoDB: about forcing recovery.

01:20:05 UTC - mysqld got signal 6 ;

This could be because you hit a bug. It is also possible that this binary

or one of the libraries it was linked against is corrupt, improperly built,

or misconfigured. This error can also be caused by malfunctioning hardware.

Attempting to collect some information that could help diagnose the problem.

As this is a crash and something is definitely wrong, the information

collection process might fail.

key_buffer_size=8388608

read_buffer_size=131072

max_used_connections=0

max_threads=151

thread_count=1

connection_count=0

It is possible that mysqld could use up to

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 67841 K bytes of memory

Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x557113ffa7f0

Attempting backtrace. You can use the following information to find out

where mysqld died. If you see no messages after this, something went

terribly wrong...

stack_bottom = 7ff1b8d66e08 thread_stack 0x46000

/usr/sbin/mysqld(my_print_stacktrace(unsigned char*, unsigned long)+0x2e) [0x557111c20b1e]

/usr/sbin/mysqld(handle_fatal_signal+0x4c1) [0x557110f1b3c1]

/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0) [0x7ff1bc1910c0]

/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcf) [0x7ff1ba426fff]

/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7ff1ba42842a]

/usr/sbin/mysqld(+0xb16c81) [0x557110d0bc81]

/usr/sbin/mysqld(Fil_shard::open_file(fil_node_t*, bool)+0x2e5) [0x557111fb9805]

/usr/sbin/mysqld(Fil_shard::open_system_tablespaces(unsigned long, unsigned long*)+0x108) [0x557111fb9b58]

/usr/sbin/mysqld(Fil_system::open_all_system_tablespaces()+0x44) [0x557111fb9e84]

/usr/sbin/mysqld(+0x1c64893) [0x557111e59893]

/usr/sbin/mysqld(srv_start(bool, std::__cxx11::basic_string, std::allocator > const&)+0x168a) [0x557111e5f01a]

/usr/sbin/mysqld(+0x1b0d3ba) [0x557111d023ba]

/usr/sbin/mysqld(dd::bootstrap::DDSE_dict_init(THD*, dict_init_mode_t, unsigned int)+0x86) [0x557111bbbde6]

/usr/sbin/mysqld(dd::bootstrap::initialize(THD*)+0x7a) [0x557111bc240a]

/usr/sbin/mysqld(+0xdcdb03) [0x557110fc2b03]

/usr/sbin/mysqld(+0x1eb738f) [0x5571120ac38f]

/lib/x86_64-linux-gnu/libpthread.so.0(+0x7494) [0x7ff1bc187494]

/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7ff1ba4dcacf]

Trying to get some variables.

Some pointers may be invalid and cause the dump to abort.

Query (0): Connection ID (thread ID): 1

Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains

information that should help you find out what is causing the crash.

docker mysql 启动命令_Mac 下使用 Docker mysql 运行的容器如果挂载了/var/lib/mysql 不能启动容器...相关推荐

  1. mysql var目录很快_删除/var/lib/mysql目录的解决办法

    在学习阶段偶尔会删除/var/lib/mysql/*目录来达到清除数据库管理员账户和密码的目的.but,对于新手来说经常会不小心删除/var/lib/mysql目录,导致重启mysql时找不到/var ...

  2. docker容器运行mysql持久化_OS x下使用Docker 持久化Mysql 数据出现问题

    初学Docker ,请见谅. 系统: OS X 10.11.1 (15B42) 运行docker工具:Docker Quickstart Terminal virtualbox 5.0.8 docke ...

  3. Docker启动Mysql容器失败,挂载时权限不足,chown: changing ownership of ‘/var/lib/mysql/‘: Permission denied

    文章目录 1. 现象 2. 查看日志分析 3. 提示信息 4. 解决方案 5. 再次执行成功 6. 技巧 1. 现象 今天用Docker运行Mysql容器时,一直启动不了,删除了重新制作容器也不行 镜 ...

  4. Docker启动Mysql容器失败,挂载时权限不足,chown:changing ownership of #x27/var/lib/mysql/#x27:Permission denied

    今天用Docker运行Mysql容器时,一直启动不了,删除了重新制作容器也不行 镜像用的Mysql5.7 运行镜像用的命令行 为: docker run -p 3306:3306 --name=&qu ...

  5. docker run后台启动命令_如何查看docker 里某个容器的的启动命令

    1,在容器外部,物理机上,可以用docker inspect查看或者,docker inspect container. 2,如果在容器内部.可以用 ps -fe 查看.其中1号进程就是启动命令. 3 ...

  6. docker挂载mysql会失败_Docker Mysql 挂载 /var/lib/mysql 后无法启动

    我也遇到相同的问题了 ` docker run \-p 4406:3306 \ -e MYSQL_ROOT_PASSWORD=localDocker@mysql \ -e TZ=Asia/Shangh ...

  7. linux mysql 卸载命令行,mysql卸载命令_Linux下卸载系统自带的MySQL数据库

    摘要 腾兴网为您分享:Linux下卸载系统自带的MySQL数据库,永安期货,央视影音,搜狗阅读,瑞易生活等软件知识,以及winulator,不做手机控app,豆瓣电影app,vr网球4,西方世界的劫难 ...

  8. linux下,MySQL默认的数据文档存储目录为/var/lib/mysql。

    0.说明 Linux下更改yum默认安装的mysql路径datadir. linux下,MySQL默认的数据文档存储目录为/var/lib/mysql. 假如要把MySQL目录移到/home/data ...

  9. docker文件过大,Docker容器引擎,迁移/var/lib/docker/到本机其它挂载分区或远程主机的某个分区。docker迁移

    docker文件过大,Docker容器引擎,迁移/var/lib/docker/到本机其它挂载分区或远程主机的某个分区.docker迁移. 0. 迁移前检查镜像和容器 docker images 和d ...

最新文章

  1. 我在 GitHub 上看到了一个丧心病狂的开源项目!治好了我的拖延症
  2. python datetime 加一个月_Python 如何计算当前时间减少或增加一个月
  3. 匿名内部类使用的场景之一
  4. mongodb和mysql创建表_MongoDB 数据库创建删除、表(集合)
  5. 这才是智能家居真正的现状
  6. 【NLP应用之智能司法】最强之谷歌BERT模型在智能司法领域的实践浅谈
  7. uniapp监听PDA激光扫描
  8. matlab第四章答案,matlab第四章课后
  9. 人工神经网络的算法原理,人工神经网络算法步骤
  10. 如何编译运行opencv的sample
  11. 分析称Twitter存五大盈利模式 将于4月中旬公布
  12. 计算机网络之网络安全基础-网络安全协议
  13. 微信邮箱是什么?微信如何绑定邮箱收发邮件?
  14. 一起来学linux:网络命令
  15. ubuntu 20 无法联网或无法解析域名(2022最新办法,实测有效)
  16. 信噪比(SNR)计算公式的推导
  17. 【单调栈】【数据结构】向右看齐 Look Up(luogu P2947)
  18. 年仅19岁!西班牙最危险黑客被捕
  19. 【BUUCTF】MISC 秘密文件
  20. 基于TR069协议管理平台(XACS)多场景解决方案之二《TR069运维平台(XACS Plus)》

热门文章

  1. 基于django框架下的werobot微信公总号开发(一)
  2. Unity 自定义自发光材质 shader (对比Standard Eimission)
  3. 研究人员有助的网站 呸子
  4. 关于迭代速度很快的解决方案
  5. “差生”韩寒难以改变的人生戏码
  6. 以CS1231为例,解释电子方案开发中的ADC芯片
  7. MySQL-存储引擎-索引-锁-集群
  8. 我整理了50道经典Java算法题,直接进了字节跳动!!
  9. linux内核驱动 DMA Engine使用
  10. Unity官方中文版(有生之年终于等到了)