docker pull mysql
docker images
mysql
docker run -d -e MYSQL\_ROOT\_PASSWORD=root --name mysql -v /usr/local/docker\_mysql/conf:/etc/mysql/conf.d -v /usr/local/docker\_mysql/data/mysql:/var/lib/mysql -p 3306:3306 mysql --character-set-server=utf8mb4 --collation-server=utf8mb4\_unicode\_ci --lower\_case\_table\_names=1
sql
docker exec -it mysql bash
docker
ERROR 2059 (HY000): Authentication plugin caching_sha2_password’ cannot be loaded
bash
`ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';code
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';server
SELECT plugin FROM mysql.user WHERE User = 'root';`ci
docker stop mysqlunicode
docker start msyqlit