There are few issues noticed while trying mysql fixture in Ubuntu 16.04 and MySQL 5.7.
Ubuntu is changing /dev/shm to /run/shm.
MySQL is changing instantiation to "mysqld --initialize".
MySQL can't initialise data folder unless it doesn't exist. So creation of the defaults.cnf has to be stored in another directory.
MySQL can't access (read/write) folders that pytest process is creating in the /run/shm, including tmp.
It might become problematic with upgrades of Ubuntu.