S04 Creating Connections and Users

S04 Creating Connections and Users

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

Take Your Free Live Demo Class Now

Enter Your DETAILS BELOW

To Get Complete Information or We Will Call You

We Will Send You the Course Fees Details In Below Number

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

Enter Your DETAILS BELOW TO take

free demo class