In docker or docker-compose, how to set the mysql8.0 password type to be mysql_native_password. I run the below query after I run the docker container, but I want it auto change when I create the container.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root'; ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret';