failed to connect!
I get this randomly i did not touch the site files or the database this has not happened please fix this issue its effecting the users
website link: https://bloxoria-2d.rf.gd/
please help me
failed to connect!
I get this randomly i did not touch the site files or the database this has not happened please fix this issue its effecting the users
website link: https://bloxoria-2d.rf.gd/
please help me
Are you sure it isn’t because of wrong credentials? Was it working before? Would you like to share code (without secrets of course).
I think it might be related to hosting outage.
It worked before and i have never changed it <?php
$dbhost = "sql105.infinityfree.com";
$dbuser = "if0_#####";
$dbpass = "######";
$dbname = "if0_####_####";
if(!$con = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname))
{
die("failed to connect!");
}
Oh wait i cant even open the database site so it could be, thanks now i know
As a matter of fact, username usually starts with epiz… Be sure it’s correct.
It is, i tried to open the database and it is down so its why
hey you are using =
instead of ==
in if
statement!
Regarding usernames, epiz_
usernames are common with old accounts (when epizy.com
was still available as a domain option). New accounts usually start with if0_
, just like in this case.
This also isn’t an issue here, while usually a common mistake, in this code =
is meant to be used, as the value of mysqli_connect
is assigned to the variable $con
, the value of which is then checked (if !$con
).
@Danyal_Assi: if you’re still facing an issue, try printing the connection error alongside the “failed to connect” message:
https://www.php.net/manual/en/mysqli.connect-error.php
This might also help:
The advice shared here may also help:
Replace 305
with your actual hostname (the xxx
in the format sqlxxx.infinityfree.com
).
Why does phpmyadmin website not work
What does it say?
It says [thelink] has redirected you too many times and it says Try clearing your cookie http://185.27.134.10/
I’d assume you don’t need to do the change in phpMyAdmin but in the file manager/via FTP, on your files (unless the database host value is also stored there).
While this is informal, but it happens to me when I try to access the phpMyAdmin directly (from address bar) instead of clicking the button in the panel. You should try clicking this one here again:
I know i did click that and i reseted password still the error appears il read the full thing
It doesn’t appear to load for me too, they are probably updating stuff. My advice is to wait.
I tried visiting https://dash.infinityfree.com/accounts/epiz_xxxxxxxx/databases and it gave: ERR_TOO_MANY_REDIRECTS
so fortunately, you are not alone.
my just changed to 185.27.134.10 isnt responding
Same happened to me, so simply wait since there is nothing anyone can do.
Ok, and if it still doesnt work what is the other way because i tried resetting pass, resetting cookies
Be patient friend. Calm down. If it still doesn’t work, there is nothing we can do. That would be a technical issue and would get addressed by InfinityFree team eventually. Whether they would fix it or not is a different topic.
If they don’t, you can use other services.
Also stop resetting passwords or cookies, that is useless because this isn’t on your side.
I am sure its because they are upgrading infrastructure, so just sit this one out… for now.
okkk