Unable to connect to MySQL Database No such file


#1

i view the post for Unable to connect to MySQL Database but i have the correct servername and password but dont charge anything please help


#2

the web browser never get an answer for the connection


#3

The “No such file” error for a database connection is described in this article. Does it help you? https://infinityfree.net/support/common-mysql-errors/


#4

No that don’t help me I checked before post in the forum I have the correct hostname like the article sql123.epizy.com but with my direction


#5

Could you please give a bit more pointers on where to find the error? Like a URL or a code snippet? I took a quick look at both of your accounts but one looks empty and I could only find plain HTML on the other one.


#6
<?php $server="sql306.epizy.com"; $user="USER"; $pass="PASSWORD"; $data="epiz_22370861_BaseBuroDeConvenciones"; $MConexion=mysqli_connect($server,$user,$pass,$data); if(!$MConexion){ header("location:mantenimiento.php"); } ?>

#7

The php cant connect to the database


#8

@JARATACA said:

<?php $server="sql306.epizy.com"; $user="USER"; $pass="PASSWORD"; $data="epiz_22370861_BaseBuroDeConvenciones"; $MConexion=mysqli_connect($server,$user,$pass,$data); if(!$MConexion){ header("location:mantenimiento.php"); } ?>

And is this file on an account somewhere with the right credentials?


#9

I try to connect with MySQL workbench and the error is cant connect to MySQL server (10060)


#10

@Admin said:

@JARATACA said:

<?php $server="sql306.epizy.com"; $user="USER"; $pass="PASSWORD"; $data="epiz_22370861_BaseBuroDeConvenciones"; $MConexion=mysqli_connect($server,$user,$pass,$data); if(!$MConexion){ header("location:mantenimiento.php"); } ?>

And is this file on an account somewhere with the right credentials?

Yes i have the correct credentials


#11

so what can i do


#12

@JARATACA said:
so what can i do

Can you give me a URL on your account where you have this database script so I can check?


closed #13