Report this

What is the reason for this report?

Unable to connect to remote MySQL server

Posted on December 15, 2017

I am trying to connect to remote MySQL server from my local PC. I am getting “10061” error.

Here are the steps I followed:

  • changed the bind-address in file /etc/mysql/mysql.conf.d/mysqld.conf to the droplet ip.
  • GRANT ALL ON databasename.* TO user@xx.xxx.xx.xx IDENTIFIED BY ‘yourpassword’;
  • flush privileges;
  • sudo /etc/init.d/mysql restart

I have disabled firewall too. But still not able to connet to it. One more thing I have a live site using the same MySQL database, changing bind-address to droplet IP makes the server throw Internal Server Error. Why is that ?

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.