ZenCart installer not seeing the MySQL DB i set up.

Posted October 14, 2013 5.1k views
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.

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.

Submit an Answer
3 answers
On what interface is MySQL listening?
i don't know. how do i find out?
Check /etc/mysql/my.cnf and look for a line that begins with bind-address =

Is the bind-address 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 localhost or