Upgrading from 10.3 to 10.4 can result in the password for a user using 'mysql_native_password' to be removed.
version 10.3
# mysql --version
|
mysql Ver 15.1 Distrib 10.3.11-MariaDB, for Linux (x86_64) using readline 5.1
|
# mysql mysql -e "select User,Host,plugin,Password,authentication_string from user where User='cptest';"
|
+--------+------+-----------------------+-------------------------------------------+-----------------------+
|
| User | Host | plugin | Password | authentication_string |
|
+--------+------+-----------------------+-------------------------------------------+-----------------------+
|
| cptest | % | mysql_native_password | *A8C0FBBC868C0ABC516A6CED06C02974BEC047C2 | |
|
+--------+------+-----------------------+-------------------------------------------+-----------------------+
|
notice that the user no longer has a password:
# mysql --version
|
mysql Ver 15.1 Distrib 10.4.1-MariaDB, for Linux (x86_64) using readline 5.1
|
# mysql mysql -e "select User,Host,plugin,Password,authentication_string from user where User='cptest';"
|
+--------+------+-----------------------+----------+-----------------------+
|
| User | Host | plugin | Password | authentication_string |
|
+--------+------+-----------------------+----------+-----------------------+
|
| cptest | % | mysql_native_password | | |
|
+--------+------+-----------------------+----------+-----------------------+
|