Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mysql:8.0 - "mysql_native_password' is deprecated and will be removed in a future release" #6511

@rfay

Description

@rfay

ddev start with mysql:8.0 shows this output in ddev logs -s db:

2024-08-27T17:20:08.116145Z 17 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

It would be good to use the newer approach, if it doesn't break things.

This is in the initial setup, in create_db.sh:

if [ "${mysqld_version%%%.*}" = "8.0" ]; then
mysql -uroot -proot <<EOF
ALTER USER 'db'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_PASSWORD';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_ROOT_PASSWORD';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$MYSQL_ROOT_PASSWORD';
EOF
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions