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

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

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

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

Then what is the problem

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted