Jump to content

Recommended Posts

Posted

I have this problem i cant connect to my db remotely I've put % in the host field
$con=mysqli_connect("tommy.heliohost.org","DB_User","Db_Pass","Db_Name");

but always i got a fail on connecting

 

Posted

Is there a specific error you are getting?

 

Also, make sure you're using the full username. It will be in the form cpUsername_dbUsername. Did you assign the user to the database?

Posted
+-----------+---------------+
| host | user |
+-----------+---------------+
| % | dobmkawe |
| % | dobmkawe_najm |
| localhost | dobmkawe |
| localhost | dobmkawe_najm |
+-----------+---------------+
Your remote mysql is set up correctly, and remote mysql definitely works on Tommy. My best guess is that port 3306 is probably blocked on your computer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...