Wednesday, February 15, 2017

mysql data directory error on kubernetes.

If you meet next error...
[ERROR] --initialize specified but the data directory has files in it. Aborting.
You should add next argument in recipe.
spec:
  containers:
  - name: db-mysql
    image: mysql:5.7
    args: ["--ignore-db-dir=lost+found"]