6T11:24:10.197116Z 0 [ERROR] docker中安装mysql,报错[MY-011947] [InnoDB] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool' for reading: No such file or directory mysqld: Table 'mysql.plugin' doesn't exist
2018-09-16 20:33:20
赵腾飞
  • 访问次数: 2
  • 注册日期: 2018-09-16
  • 最后登录: 2018-09-16
刚刚接触docker。前些天在docker中安装过mysql,可以正常使用。现在重新弄一遍,看着像容器已经启动了,但是用客户端连不上。查看日志如下:大神帮看下是哪里的问题。sudo docker run --name=mysql_3308 --restart=always -p 3308:3306 -e=MYSQL_ROOT_PASSWORD=123456 -d 6a834f03bd02 de4825806388938b99fea2d94bf192dec6772c1d41b3da61f41fc6fa238d4a50sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESde4825806388 6a834f03bd02 "docker-entrypoint.s…" 9 seconds ago Up 1 second 33060/tcp, 0.0.0.0:3308->3306/tcp mysql_3308用客户端不能连接$ sudo docker logs de4825806388Initializing database2018-09-16T11:24:01.581600Z 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-09-16T11:24:01.581701Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.12) initializing of server in progress as process 31[err] evsignal_init: socketpair: Permission denied2018-09-16T11:24:08.874129Z 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-09-16T11:24:08.874230Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.12) starting as process 12018-09-16T11:24:10.197116Z 0 [ERROR] [MY-011947] [InnoDB] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool' for reading: No such file or directorymysqld: Table 'mysql.plugin' doesn't exist2018-09-16T11:24:10.263611Z 0 [ERROR] [MY-010735] [Server] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.[err] evsignal_init: socketpair: Permission denied2018-09-16T11:24:12.054916Z 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-09-18 03:32:19
李明
  • 访问次数: 382
  • 注册日期: 2018-07-09
  • 最后登录: 2022-11-17

/var/lib/mysql/ib_buffer_pool 给docker用户增加一个权限试试

1/1