Skip to content

Docker mysql:latest keep mysql2 to authenticate with root user  #777

Closed
@pierre-aurele-martin

Description

@pierre-aurele-martin

Hello,

I've noticed that this commit on docker mysql image made all my tests failed :

-			SET PASSWORD FOR 'root'@'localhost'=PASSWORD('${MYSQL_ROOT_PASSWORD}') ;
+			ALTER USER 'root'@'localhost' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}' ;

I was using Gitlab CI with mysql:latest and got this error :

Client does not support authentication protocol requested by server; consider upgrading MySQL client

Everything ok with older version of mysql image. This happened with mysql2:1.5.3 (latest)

Might help other people understanding why CI tests are suddenly failing :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions