-
Notifications
You must be signed in to change notification settings - Fork 982
MySQL 8.0
Nick Vyzas edited this page May 4, 2020
·
5 revisions
Please note: the project WIKI documentation has been moved to the ProxySQL website
ProxySQL supports MySQL 8.0 , although there are some limitations:
- starting with MySQL 8.0.4, the default authentication plugin for MySQL server was changed from mysql_native_password to caching_sha2_password. ProxySQL doesn't support yet
caching_sha2_password
.
For this reason, MySQL server needs to be configured usingmysql_native_password
. See the doc for further details. - ProxySQL doesn't accept connections (frontend connections and connections to Admin) if the client tries to use
caching_sha2_password
authentication plugin. If clients are using libmysqlclient from MySQL 8.0 (that defaults tocaching_sha2_password
), they must explicitly usemysql_native_password
.
You can specifydefault-auth=mysql_native_password
inmy.cnf
in the section[mysql]
or[client]
, or specify it on the command line.
For example, to connect to Admin:
mysql --default-auth=mysql_native_password -h 127.0.0.1 -P6032 -u admin -padmin
Both notes above are not valid anymore for recent versions of ProxySQL 2.0