In another blog post, I wrote about solving an issue with io_setup(). The issue was resolved by disabling native AIO in the configuration files.
The database service in docker compose
db:
image: mysql:5.7
volumes:
- "./path/to/my.cnf:/etc/alternatives/my.cnf"
This is as minimalist as it gets. We’re using the mysql:5.7 image. The image automatically loads the configuration file in /etc/alternatives/my.cnf
allowing us to make changes in the configuration of mysql.
Example content
[mysqld]
innodb_use_native_aio = 0
Any configuration settings can be added here.
Sample configuration
Oinume published a nice example of a configuration file, which you can find here:
Leave a Reply