<?php$servername="localhost";
$username="yourusername"; // For MYSQL the predifined username is root$password="yourpassword"; // For MYSQL the predifined password is " "(blank)// Create connection$conn=newmysqli($servername, $username, $password);
// Check connectionif ($conn->connect_error) {
die("Connection failed: ".$conn->connect_error);
}
echo"Connected successfully";
?>
Posted by: Guest
on June-01-2020
Code answers related to "mysql database connection"
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems
resetting your password contact us
Check Your Email and Click on the link sent to your email