If chown and chmod didn't help. There is a possibility that some security app blocks access to your file.
In case of apparmor you can follow this answer https://stackoverflow.com/a/56850952/27734465
In case of SElinux try semanage permissive -a mysqld_t