Access denied after setting user's password with SHA256 in phpMyAdmin

后端 未结 3 1343
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 14:37

After seeing that default passwords generated by phpMyAdmin used mysql_native_password and therefore hashes didn\'t changed when equal passwords where used, I updated one us

3条回答
  •  Happy的楠姐
    2020-11-30 15:29

    MySQL has recently changed the default authentication type and, between MySQL and PHP, this change took quite a while to be supported by PHP. The old method was mysql_native_password and the new one is caching_sha2_password. PHP versions starting with 7.4 support the new method. Since this is related to PHP itself, phpMyAdmin supporting this method requires you to run an updated PHP installation (phpMyAdmin itself is ready for this change, but your ability to use it depends on your PHP version).

    You basically have two options:

    1. Upgrade your PHP to 7.4 or newer.
    2. Change the authentication type on your user to the older mysql_native_password. You can do that by editing the user (from the User accounts tab in phpMyAdmin, edit the user, then change the authentication method from the dropdown).

提交回复
热议问题