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