caching sha2 password is not supported mysql

前端 未结 7 1769
梦如初夏
梦如初夏 2020-12-06 07:37

i\'m trying to get my python program to insert data into MySQL and i followed a guide however i keep getting the error below.

\"Authentication plugin \'{0}\'

相关标签:
7条回答
  • 2020-12-06 08:06

    Got the same issue just now, and tried all the answers above (none worked).

    Per MySQL 8 documentation, easiest way to fix this is to add the following to your MySQL d file -> restart MySQL server. This worked for me!

    If your MySQL installation must serve pre-8.0 clients and you encounter compatibility issues after upgrading to MySQL 8.0 or higher, the simplest way to address those issues and restore pre-8.0 compatibility is to reconfigure the server to revert to the previous default authentication plugin (mysql_native_password). For example, use these lines in the server option file:

    [mysqld]
    #add the following file to your MySQLd file
        default_authentication_plugin=mysql_native_password
    
    0 讨论(0)
提交回复
热议问题