Report this

What is the reason for this report?

ZenCart installer not seeing the MySQL DB i set up.

Posted on October 14, 2013

i’m installing ZC and on the Database page of the installer I’m getting this error.

Connection to Database failed?Can’t connect to MySQL server on ‘123.456.78.999’; (111) more info…

i installed LAMP no problem. i can access MySQL and the empty DB i set up for ZenCart thru the command line, so i’m not seeing what the problem is.

the ZC installer is asking for the following:

Host (this is the IP address, no?) Username - root Password -xxxxx Name of DB. - databasename

the last 3 i use in the command line, therefore i’m fairly certain that’s what i should enter. anyone know what the problem might be.

big thanks in advance.



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!

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.

On what interface is MySQL listening?

i don’t know. how do i find out?

Check <code>/etc/mysql/my.cnf</code> and look for a line that begins with <code>bind-address = xxx.xxx.xxx.xxx</code>. <br> <br>Is the <code>bind-address</code> commented out? If not, what IP address is listed? You may need to replace the IP address with the one that ZenCart is using when it attempts to connect to MySQL; or, in ZenCart, tell it to look for MySQL on <code>localhost</code> or <code>127.0.0.1</code>.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.