Can't connect to MySQL server on 'DomainIP ' (111)

Posted June 21, 2017 7.6k views

When i install this command in putty fille with FilleZilla and sql file in phpmyadmin i go to website and i saw this error Connection failed: SQLSTATE[HY000] [2003] Can’t connect to MySQL server on ‘’ (111)** Screenshot :** can you help my thanks for fast reply :)

-apt-get update
-apt-get upgrade
-apt-get install mysql-server mysql-client
-apt-get install apache2
-apt-get install php5 libapache2-mod-php5
apt-get install phpmyadmin
-apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

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.

Submit an Answer
3 answers

Did you try “localhost”? Is the MySQL process running? Does it work using the CLI?

Then what is the problem