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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...