Question

ZenCart installer not seeing the MySQL DB i set up.

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.


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.

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.

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>.

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

On what interface is MySQL listening?