docker run --name ilink_user_01 -e MYSQL_ROOT_PASSWORD=123456 0d 0p 3307:3306 mysql/mysql-server:latest
docker exec -it ilink_user_01 bash
SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
update mysql.user set host='%' where user='root'; flush privileges;
出現authentication plugin 'caching_sha2_password',由於mysql鏡像是使用caching_sha2_password進行加密的,而navicat沒有支持caching_sha2_password加密方式,mysql
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';