我对PHP / MySQL完全陌生,正在使用My SQL 8.0.15并尝试学习PHP和MySQL,并进行了以下用户输入:
create user if not exists 'mike@localhost' identified with mysql_native_password by 'easysteps';
grant select, insert, update on site_db to 'mike@localhost';
<?php
$con = mysqli_connect("localhost","mike","easysteps","site_db");
警告:mysqli_connect():服务器在第2行的C:\ Abyss Web Server \ htdocs \ conxyz.php中请求客户端[caching_sha2_password]未知的身份验证方法
答案 0 :(得分:0)
打开您的my.ini并进行更改
default_authentication_plugin = mysql_native_password