arkdb / arkproxy

高性能、高可靠的数据库跨云中间件,完全兼容MySQL技术体系,由极数云舟出品开源
GNU Lesser General Public License v2.1
102 stars 30 forks source link

mysql 8.0 支持吗? #8

Open sky1006 opened 3 years ago

sky1006 commented 3 years ago

mysql 8.0 支持吗 image

Mickyun commented 3 years ago

你好,目前Arkproxy对MySQL8.0的兼容正在开发中,后期更新会第一时间上传,敬请期待~

superceix commented 3 years ago

另外,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'