Hey, im very new to this but i use the PhPadmin in the control panel
The php code you’re connecting to database with, i mean.
I reaally do not understand im so sorry…
Are you using a software or you’re coding your site yourself?
I used a template, ive used before with another hosting.
maybe this topic helps:
ive readen almost all and reasearched but still stuck…
Hello… anyone help me pleas?
How can we help you when you don’t provide us any information?
Just copy/paste whatever is inside index.php (with censoring password)
Well, you should Enable display errors for Alter php config in cpanel.
It won’t fix the error but it’ll give more info about error, at least.
how can i do that sir
Maybe also change the configuration file contents with the correct database host, since the index.php file doesn’t have any configuration content for the database. Also, to enable Display Errors, quoted from this article:
- Login to your control panel.
- Go to Alter PHP Config.
- Select the domain name you are trying to debug and click Alter PHP Directives.
- Set “Display Errors” to “On” and click the Alter PHP Directives button to save.
If you refresh the page, you should hopefully see an error message.
when i log intoo file manger it gives me , could not read line by socket, when i try to authinctiate
Read this article first then:
<?phpinclude "inc/header.php";$result = mysqli_query($con, "SELECT * FRO - Pastebin.com with error enabled
Warning : mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /home/vol5_5/epizy.com/epiz_25554520/htdocs/inc/database.php on line 9
Warning : mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /home/vol5_5/epizy.com/epiz_25554520/htdocs/inc/database.php on line 9
Failed to connect to MySQL: php_network_getaddresses: getaddrinfo failed: No address associated with hostname
Warning : mysqli_query() expects parameter 1 to be mysqli, bool given in /home/vol5_5/epizy.com/epiz_25554520/htdocs/login.php on line 12
Warning : mysqli_error() expects parameter 1 to be mysqli, bool given in /home/vol5_5/epizy.com/epiz_25554520/htdocs/login.php on line 12
here aare the errors
copy paste whatever is in database.php
file here:
I asked to enable it because it says in which file that happens.
Warning : mysqli_connect(): (HY000/2002): Connection refused in /home/vol5_5/epizy.com/epiz_25554520/htdocs/inc/database.php on line 9
Failed to connect to MySQL: Connection refused
Warning : mysqli_query() expects parameter 1 to be mysqli, bool given in /home/vol5_5/epizy.com/epiz_25554520/htdocs/login.php on line 12
Warning : mysqli_error() expects parameter 1 to be mysqli, bool given in /home/vol5_5/epizy.com/epiz_25554520/htdocs/login.php on line 12
btw i couldnt reply more it gave me error, you reach maxiumum replies.
<?php $myhost = "ftpupload.net"; $myuser = "epiz_25554520"; $mypass = "Mafvcwx4Ws5"; $mydb = "Database.sql"; $key = "2147828743"; //Don't tuch this ! $con = mysqli_connect($myhost, $myuser, $mypass, $mydb); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?>i filled it out, after i saw it waas raw
Please don’t make duplicate posts.