MySQL主从复制报错Authentication plugin ‘caching_sha2_password‘ reported error: Authentication
解决方法:
原来是主库repl的plugin是caching_sha2_password 导致连接不上,修改为mysql_native_password即可解决。
ALTER USER 'repl'@'%' IDENTIFIED WITH mysql_native_password BY 'MyNewPass4!';