编码变了,结果是这样:
Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in D:\Apache\htdocs\main\test.php on line 2
Warning: mysqli_connect(): (HY000/2054): The server requested authentication method unknown to the client in D:\Apache\htdocs\main\test.php on line 2