Skip to content

fully support mysql 8.0 (caching_sha2_password authentication) #178

Open

Description

Currently, ml-metadata can't be used with most MySQL 8.0 databases out of the box, this is because in MySQL 8.0, the default-authentication-plugin was changed from mysql_native_password to caching_sha2_password for significant security reasons.

There have been a number of issues related to this over the past few years:

We even have an error message that suggests people use the less secure mysql_native_password:

LOG(ERROR)
<< "MySQL database was not initialized. Please ensure your "
"MySQL server is running. Also, this error might be caused by "
"starting from MySQL 8.0, mysql_native_password used by MLMD is not "
"supported as a default for authentication plugin. Please follow "
"<https://dev.mysql.com/blog-archive/"
"upgrading-to-mysql-8-0-default-authentication-plugin-"
"considerations/>"
"to fix this issue.";


As the adoption of MySQL 8.0 increases, and we hit the EOL of MySQL 5.7 in October 2023, this issue is going to affect more and more people.

I strongly suggest we plan to upgrade our MySQL client to one which properly supports MySQL 8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions