php连接mysql报 mysqli_real_connect():The server requested authentication method unknown to the client

bug

mysqli_real_connect():The server requested authentication method unknown to the 

解决方案:

php连接mysql报 mysqli_real_connect():The server requested authentication method unknown to the client_第1张图片

bug

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''%' IDENTIFIED WITH mysql_native_password BY 'wjx200022@123'' at line 1

解决方案

php连接mysql报 mysqli_real_connect():The server requested authentication method unknown to the client_第2张图片

 

成功:

php连接mysql报 mysqli_real_connect():The server requested authentication method unknown to the client_第3张图片

 

历时1小时。

刚刚的草稿被csdn删了,

你可能感兴趣的:(坑路历程)