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

前端 未结 11 2266
遥遥无期
遥遥无期 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:04

    I ran the following command ALTER USER 'root' @ 'localhost' identified with mysql_native_password BY 'root123'; in the command line and finally restart MySQL in local services.

提交回复
热议问题