Report this

What is the reason for this report?

Connect Error (2003) Can't connect to MySQL Server on '' (111)

Posted on October 7, 2014

Ubuntu 14.04 x32.

Installed php, phpmyadmin, apache, mysql.

Created database, upload my website files and I’m getting this error message:

Connect Error (2003) Can’t connect to MySQL server on ‘myipaddress’ (111)

I tried these solutions:

  1. In etc>mysql>my.cnf change these line: secure.bind-address=127.0.0.1 to secure.bind-address=myipaddress Didn’t work.

  2. mysql> GRANT ALL ON mydbname.* TO root@‘myipaddress’ -> IDENTIFIED BY ‘mymysqlpassword’;

It did’nt work, too.

What can i do sometimes?

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.