Mysql 8.0 远程连接

1.创建用户

create user yanjc@% identified 123456;

2.授权

grant all on *.* to yanjc@%;