Step 01: go to http://localhost/phpmyadmin
go to home and then to User Accounts
and create users with password, localhost, and check ALL Privileges
Step 02: Create Connections by Code
<?php
$servername = “localhost”;
$username = “Vinay”;
$password = “123456”;
$dbname = “Vinay”;
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}
echo “Connected successfully<br>”;
?>
Step 03 Check the connections
by running files