ErikJiang/market_monitor

startup bug by mysql err

Closed this issue · 0 comments

$ docker logs -f m_mysql
logs as followings:
2019-03-25T13:49:07.305063Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting. 2019-03-25T13:49:07.305261Z 0 [ERROR] [MY-013236] [Server] Newly created data directory /var/lib/mysql/ is unusable. You can safely remove it. 2019-03-25T13:49:07.305293Z 0 [ERROR] [MY-010119] [Server] Aborting
bugfix:
$ rm -rf market_monitor/mysql/data/*
$ docker-compose restart

done!!!