Forums / Installing on a Linux/Unix Server / Database Setup Issue: Connection to Database failed, on iPage

Database Setup Issue: Connection to Database failed, on iPage

Started by tempoart on 5 Jul 2012, 11:03 PM · Views: 8,556

Results 1 to 5 of 5
5 Jul 2012, 11:03 PM
#1
tempoart avatar

tempoart

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Database Setup Issue: Connection to Database failed, on iPage

When I tried to do the Database Setup on the page as shown, http://cabinetspros.com/zc_install/index.php?main_page=database_setup, it comes the failure indication as below:
ATTENTION: Problems Found
Connection to Database failed
Unknown MySQL server host 'cabinetspros.ipagemysql.com ' (1) more info...
I am sure that database name, passcode and host are good. What could be the problem?

6 Jul 2012, 12:02 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Database Setup Issue: Connection to Database failed, on iPage

You must specify the correct database-server as well as the username/password.

Normally the database-server is "localhost". If it isn't, then your hosting company can tell you what the correct address is.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jul 2012, 3:21 AM
#3
tempoart avatar

tempoart

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Re: Database Setup Issue: Connection to Database failed, on iPage

The hosting company said the address is cabinetspros.ipagemysql.com and I also tried ' localhost", but neither worked. Username and password are correct, too.

6 Jul 2012, 3:46 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Database Setup Issue: Connection to Database failed, on iPage

Zen Cart's connection process to the database is very simple:

  1. You supply the database name, username, password, and host
  2. Zen Cart uses that information to make a connection to the database using the mysql_connect() and mysql_select_db() functions built-in to PHP.

If the MySQL engine sends back an error response when trying to connect or to select access to that database, then Zen Cart will give the error message you are reporting.

So, that means any of the following, or all, could be true:
a) you supplied wrong information for database name, username, password, or host.
b) you haven't granted that username all permissions to the specified database

See the /docs/ImplementationGuide.pdf file for more help on what is required when setting up a database for use, or at least guidance on what help you will need from your hosting company if you're not comfortable with the information presented therein.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Jul 2012, 6:43 AM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Database Setup Issue: Connection to Database failed, on iPage

iPage is amongst the WORST places in the Galaxy to host websites... They compete with GoDaddy for bottom of the barrel awards on a regular basis.

20 years a Zencart User