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

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

This comment has been deleted

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Featured on Community

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel