Open sky1006 opened 3 years ago
你好,目前Arkproxy对MySQL8.0的兼容正在开发中,后期更新会第一时间上传,敬请期待~
另外,8.0主要是default_authentication_plugin的更新,同时用户权限相关语法也有更新。 不考虑通过Arkproxy执行用户授权,可以 1.把MySQL8.0的default_authentication_plugin设置为mysql_native_password:
配置文件中增加:default_authentication_plugin=mysql_native_password
2.同时登陆用户密码也也设置为mysql_native_password, Server端创建用户和授权命令参考:
CREATE USER arkproxy
@%
IDENTIFIED WITH mysql_native_password BY 'arkproxy_pwd';
GRANT ALL ON . TO arkproxy
@%
;
设置完以后通过可以通过Arkproxy访问MySQL 8.0(语法兼容至MySQL 5.7)
同样的,高版本(8.0及以上)的MySQL Client连接Arkproxy时,也需要指定auth plugin: mysql -uuser -ppassword -Pport -h127.0.0.1 -A --default-auth='mysql_native_password'
mysql 8.0 支持吗