0

I have hosted my website on godaddy cpanel and database in cpanel but when i try to login it show me the message

Connection Failed: Access denied for user 'medmocksroot'@'localhost' (using password: YES)

I have also tried this by renaming the username and password according to cpanel username and password but still it showing same error..... please help me out

my php page:

<?php
require_once 'sessions.php';

$servername = "localhost";
$username = "medmocksroot";
$password = "medmocks123";
$dbname = "medmocks";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
?>
Shadow
  • 33,525
  • 10
  • 51
  • 64
zargham
  • 9
  • 3

0 Answers0