In my installation, I have installed MySql Server on my machine. I am required to run the cmd: telnet mysql.mydomain.com 3306
on ubuntu VM. So for this I have purchased domain : mydomain.com. So I need to take hostname: mysql
and need to bind Mysql Database IP address to it. So what is the mysql IP address that I should attach to mysql hostname.
I took localhost and checked my IPV4 address in cmd prompt. I then attached it to mysql.mydomain.com
But when I ran the cmd: telnet mysql.mydomain.com 3306
It says:
telnet: Unable to connect to remote host: Connection timed out
So what shall i do to so that my VM can connect to MySql Database?
The bad news is, free hosting does not support remote SQL.
However, the good news are, this is available on the cheapest plans you will ever find - try one of hostinger’s cheapest plans in the market.
To connect to a database from local PC, host should support remote connections. But, as a free platform, 000webhost does not support remote connections. So, as @ckhawand said you have to upgrade to hostinger if you need to connect with a local database manager. Otherwise, use phpMyAdmin