Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mgt开发环境-MySQL突然获胜';开始_Mysql_Docker - Fatal编程技术网

Mgt开发环境-MySQL突然获胜';开始

Mgt开发环境-MySQL突然获胜';开始,mysql,docker,Mysql,Docker,我有4个容器使用mgt commerce/mgt-development-environment-7.2。基本上一切都运行良好,直到我无法访问控制面板。它返回500 在检查了服务、日志等之后,mysql似乎无法启动。下面是在使用sudo service mysql start启动mysql服务时在/var/log/mysql/error.log中捕获的错误日志 2019-09-26T23:38:43.740283Z mysqld_safe Starting mysqld daemon with

我有4个容器使用
mgt commerce/mgt-development-environment-7.2
。基本上一切都运行良好,直到我无法访问控制面板。它返回
500

在检查了服务、日志等之后,mysql似乎无法启动。下面是在使用
sudo service mysql start
启动mysql服务时在
/var/log/mysql/error.log
中捕获的错误日志

2019-09-26T23:38:43.740283Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2019-09-26T23:38:43.921450Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.26-29) starting as process 1576 ...
2019-09-26T23:38:43.924613Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-09-26T23:38:43.924635Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-09-26T23:38:43.924639Z 0 [Note] InnoDB: Uses event mutexes
2019-09-26T23:38:43.924642Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-09-26T23:38:43.924644Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-09-26T23:38:43.924647Z 0 [Note] InnoDB: Using Linux native AIO
2019-09-26T23:38:43.924859Z 0 [Note] InnoDB: Number of pools: 1
2019-09-26T23:38:43.924920Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-09-26T23:38:43.925849Z 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 8, chunk size = 128M
2019-09-26T23:38:43.946744Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-09-26T23:38:43.955252Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-09-26T23:38:43.966654Z 0 [Note] InnoDB: Recovering partial pages from the parallel doublewrite buffer at /var/lib/mysql/xb_doublewrite
2019-09-26T23:38:44.033822Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-09-26T23:38:44.033986Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2019-09-26T23:38:44.034023Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2019-09-26T23:38:44.034040Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2019-09-26T23:38:45.135220Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-09-26T23:38:45.135270Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-09-26T23:38:45.135283Z 0 [ERROR] Failed to initialize builtin plugins.
2019-09-26T23:38:45.135291Z 0 [ERROR] Aborting

2019-09-26T23:38:45.135301Z 0 [Note] Binlog end
2019-09-26T23:38:45.135371Z 0 [Note] Shutting down plugin 'CSV'
2019-09-26T23:38:45.136207Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
有没有人在使用这张图片时遇到过这样的错误

更新

mysql似乎没有访问特定文件或目录的权限,但我不确定是哪个文件或目录。以下是mysql数据目录的权限:

clp@magento2dev:/$ ls -la /var/lib | grep mysql
drwxr-x--- 1 mysql         mysql         4096 Sep 26 23:38 mysql
drwxrwx--- 2 mysql         mysql         4096 Jul 11 15:24 mysql-files
drwxr-x--- 2 mysql         mysql         4096 Jul 11 15:24 mysql-keyring

我猜您需要/var/lib/mysql目录中的写入权限,因为根据错误日志,startup试图覆盖“doublewrite”异常情况。@WilsonHauck您应该已经看到权限应该是正确的。Mysql数据目录及其子目录(包括其中的文件)的所有者和组已经设置为Mysql:Mysql。我还通过执行
sudochown-mysql:mysql/var/lib/mysql-R
来确保已经设置了所有内容,大约15行,在我看来似乎缺少“w”权限。我以前是错的。@WilsonHauck但是
/var/lib/mysql
中的每个文件都有
rwx
所有者权限,包括
/var/lib/mysql/xb\u doublewrite
文件