Jump to content

[Solved] Problem connecting to external MySQL db


Recommended Posts

I need help connecting to mySQL database that is on hosting server from my site. 


DB connects fine from three different computers and two different sites, but it won't connect from my Django app on my site or using php script on my site, it just gives "Connection timed out"



user - gasparic


Hostinger MySQL db:

host = 'servername';

dbname = 'XXX';
username = 'XXXXu';



I added % - any host to allowed hosts to MySQL remote on hPanel on hostinger and I also added address which was shared IP address for my site at the moment.



I made special user for Django so that I can share Django debug report if it will help - I'm willing to send it via email or private message.


Thank you in advance

Edited by gasparic
Link to comment
Share on other sites

Received PM about this issue. Hostinger blocked Tommy's shared IP. I can't even ping the server from Tommy, let alone get a DB connection to work. Johnny isn't blocked though and works fine. Hostinger's support needs to unblock to fix this.

Link to comment
Share on other sites

Received PM:

I'm so glad I discovered HelioHost.


This level of dedication and support is just wow.


Thank you very much for your help.



You're most welcome :) Let us know if you need anything else.

  • Like 1
Link to comment
Share on other sites

Join the conversation

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

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...