Report this

What is the reason for this report?

Remote SQL server is not working

Posted on October 26, 2017

I have two instances running in digital ocean.

Instance #1:

Running NodeJS MySQL grunt for web application.

    'connection': {
        'host': '`ip-address-for-instance-2`',
        'user': 'root',
        'password': '`password`'
    },

Instance #2:

Running phpmyadmin by ‘instance-2-ip/phpmyadmin’

I had edit my.cnf bind address with my instance’s 2 IP address.

bind-address=`ip-address`

When I grunt my web application:

Error: connect ETIMEDOUT



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @longsookeat,

Could you confirm if MySQL is installed on instance-2 and you only have Node js web app on instance-1?

Feel free to check the below tutorial which can guide you with allowing remote access to the MySQL database.

https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql

Regards, Rajkishore

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.