Sign inSign up

lambdaexpression/centos7.6.18.10_mysql57

By lambdaexpression

Updated over 7 years ago

centos7.6.18.10 and mysql57

Image
0

278

lambdaexpression/centos7.6.18.10_mysql57 repository overview

启动

docker run -it --name centos7.6.18.10_mysql57 -p 3306:3306 -d lambdaexpression/centos7.6.18.10_mysql57 /bin/bash -c "/etc/rc.d/rc.local;/bin/bash" -e TZ=Asia/Shanghai

*. 补充

如果下载docker镜像,启动后产生的 Can't open and lock privilege tables: Table storage engine for 'proxies_priv' doesn't have this option 异常处理

mysql启动不了,可通过下面命令看到异常

tail -f -n 100 /var/log/mysqld.log
2019-01-28T05:56:57.535828Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-01-28T05:56:57.535877Z 0 [Note] IPv6 is available.
2019-01-28T05:56:57.535901Z 0 [Note]   - '::' resolves to '::';
2019-01-28T05:56:57.535927Z 0 [Note] Server socket created on IP: '::'.
2019-01-28T05:56:57.540355Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table storage engine for 'proxies_priv' doesn't have this option
2019-01-28T05:56:57.540385Z 0 [ERROR] Fatal error: Failed to initialize ACL/grant/time zones structures or failed to remove temporary table files.
2019-01-28T05:56:57.540456Z 0 [ERROR] Aborting

原因大概是新建容器里面,它没有对应的文件读写权 如果没有特殊要求可以直接使用下面命令直接修改文件权限

//进入容器
docker attach centos7.6.18.10_mysql57
//授权
chmod -R +777  /var/lib/mysql/

Tag summary

Content type

Image

Digest

Size

832.6 MB

Last updated

over 7 years ago

docker pull lambdaexpression/centos7.6.18.10_mysql57