Sql connection

Someone help me,my sites sql says connection timed out

is this in your account? however you cannot connect to databases from another server


its in the same server,the website is http://willies.rf.gd/willies/home.php or more like http://willies.rf.gd/willies/db.php

Then on the database configuration file, you’ve most likely put localhost or as database host. That is NOT working here on InfinityFree. You can find the database host from the “MySQL Databases” section of the Control Panel.

1 Like

Can you share your connection codes? If you’re connecting by mysqli_connect. You’d try PDO Connection

@Ergastolator1 I have found the mysql databases but i dont know where to find or change the localhost/127.0.01
define ( ‘DB_HOST’, ‘sql1O3.epizy.com’ );
define ( ‘DB_USER’, ‘epiz_24355568’ );
define ( ‘DB_PASSWORD’, ‘****’ );
define ( ‘DB_NAME’, ‘epiz_24355568_ecommerce_xxxx’ );

$con = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);

if (mysqli_connect_errno())
echo “Failed to connect to MySQL:” . mysqli_connect_error();

use sql103.epizy.com instead of sql1O3.epizy.com

‘O’ letter cannot used as ‘0’


Im a dude but i love you bro.Thanks


You’re welcome ^^

1 Like

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