The release of MySQL 8.0 introduced strong password requirements, leading to issues when accessing phpMyAdmin. However, there are several methods to resolve this problem.
Execute the following command to change the Authentication Plugin:
ALTER USER root IDENTIFIED WITH mysql_native_password BY 'PASSWORD';
Use the following command to change the plugin:
mysql -u root -pPASSWORD ALTER USER root IDENTIFIED WITH mysql_native_password BY 'PASSWORD';
If using the mysql/mysql-server Docker image, execute:
docker exec -it mysql sed -i -e 's/# default-authentication-plugin=mysql_native_password/default-authentication-plugin=mysql_native_password/g' /etc/my.cnf
Apply the plugin change with:
docker exec -it mysql mysql -u root -pPASSWORD -e "ALTER USER root IDENTIFIED WITH mysql_native_password BY 'PASSWORD';"
Execute the following command within the MySQL container:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
The above is the detailed content of How Can I Access phpMyAdmin After MySQL 8.0\'s Strong Password Requirements?. For more information, please follow other related articles on the PHP Chinese website!