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

June 21, 2017 4.4k views
MySQL Debian

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

3 Answers
Woet June 21, 2017
Accepted Answer

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

  • Can’t connect to MySQL server on ‘CSGOFarm’ (111)’
    Check that mysqld is running on CSGOFarm and that the port is 3306.
    You can check this by doing 'telnet CSGOFarm 3306

Then what is the problem

Have another answer? Share your knowledge.