MySQL is not able to be displayed

Lordor – website http://stavvody.epizy.com/esp-data.php

I created a website with MySQL database. I see the DB in my phpMyADMIN but on the webpage it gives Errormessage:

No such file or directory.

My connection look like this:

$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);

I am sure I have had all the things written good.
Whenever I go in phpMyADMIN to server page i do not see my DB as well. I am using localhost as servername.
Can somebody help please?

You don’t use it, our sqlservers look like sqlxxx.epizy.com, to see your database host, log into your site Cpanel->Mysql Databases

6 Likes

Thank you

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.