This topic created in 2659 days ago, the information mentioned may be changed or developed.
docker pa -a 查看了一下,8 weeks ago 创建的一个 mysql 容器,并且跑起来,直到中午容器挂掉了。
然后看了一下容器日志
ERROR: mysqld failed while attempting to check config
command was: "mysqld --verbose --help"
2019-04-28T07:12:20.708036Z 0 [ERROR] unknown variable 'symbolic-link=0'
2019-04-28T07:12:20.789256Z 0 [ERROR] Aborting
看了下报错信息,是配置出错了,但是现在容器启动不起来,不能进去容器改配置。
虽然是测试用的服务器,但是里面的数据还是有用的,有一些表结构还没来得及备份
10 replies • 2019-04-29 07:54:17 +08:00
 |
|
1
Graves Apr 28, 2019
之前偷懒,没有在宿主机创建配置文件然后挂载给容器。但是按理来说一开始容器应该就启动不了,我也没去改过容器配置,现在容器突然就启不来,有点 想不通
|
 |
|
2
kimqcn Apr 28, 2019
估计是不小心把配置文件改错了。可以 docker cp 把容器里的文件拷贝出来改好再放回去。
|
 |
|
3
mahone3297 Apr 28, 2019
只要数据不在容器中,可以新起一个 mysql 进程,去 mount 吧
|
 |
|
4
CallMeReznov Apr 28, 2019
你不会数据文件直接在写 DOCKER 里面吧? 现在容器多大了??? 用的非 ubuntu?
|
 |
|
7
Graves Apr 28, 2019
哎,还是不能偷懒啊
|
 |
|
8
Graves Apr 28, 2019
To recover your lost Database and avoid leaking it: Send us 0.1 Bitcoin (BTC) to our Bitcoin address 1J6jLduCXbPyxt5EMTs7iHwdafANy4ThJc and contact us by Email with your Server IP or Domain name and a Proof of Payment. If you are unsure if we have your data, contact us and we will send you a proof. Your Database is downloaded and backed up on our servers. Backups that we have right now: test1, test2, ApolloPortalDB, dev, ApolloConfigDB . If we dont receive your payment in the next 10 Days, we will make your database public or use them otherwise. 原来是被黑了
|
 |
|
9
Graves Apr 28, 2019
@ kimqcn 用你的方法,cp 出来改完配置再放回去,可以启动容器,但是发现数据表被删了,然后记录里面有勒索 BTC 的信息
|