<?php $servername = "localhost"; $username = "root"; $password = "Pass@123"; // Create connection $conn = mysqli_connect($servername, $username, $password); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } echo "Connected successfully"; ?>
Connection failed: The server requested authentication method unknown to the client
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)