mariadb windows Unknown/unsupported storage engine: InnoDB

回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

mariadb windows Unknown/unsupported storage engine: InnoDB

文章 yehlu »

https://github.com/docker-library/mariadb/issues/95

Alright, for those who don't like to spend 2+ hours around this issue like I did, here's what fixed it for me (Windows 10, Docker with Hyper-V):

docker-compose.yml:

代碼: 選擇全部

version: "3"
services:

  db:
    image: mariadb:10.1
    restart: unless-stopped
    volumes:
      - ./config:/etc/mysql/conf.d
      - ./data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxxxx
      - MYSQL_PASSWORD=xxxxxxx
      - MYSQL_DATABASE=xxxxxxx
      - MYSQL_USER=xxxxxxx
    command:
      mysqld --innodb-flush-method=littlesync --innodb-use-native-aio=OFF --log_bin=ON

conf.d/local.cnf

代碼: 選擇全部

[mysqld]
innodb_flush_method=littlesync
innodb_use_native_aio=OFF
log_bin=ON
Please fix this ASAP!
回覆文章

回到「Docker」