php mysqli_connect: authentication method unknown to the client [caching_sha2_password]

前端 未结 11 2230
遥遥无期
遥遥无期 2020-11-22 03:40

I am using php mysqli_connect for login to a MySQL database (all on localhost)



        
11条回答
  •  感情败类
    2020-11-22 04:03

    I tried this in Ubuntu 18.04 and is the only solution that worked for me:

    ALTER USER my_user@'%' IDENTIFIED WITH mysql_native_password BY 'password';
    

提交回复
热议问题