Forums / Installing on a Linux/Unix Server / Connection to Database failed.

Connection to Database failed.

Locked

Started by jsrede on 6 Feb 2009, 9:07 PM · Views: 1,555

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
6 Feb 2009, 9:07 PM
#1
jsrede avatar

jsrede

New Zenner

Join Date:
Feb 2009
Posts:
1
Plugin Contributions:
0

Connection to Database failed.

Connection to Database failed ... Access denied for user: 'myname@localhost' (Using password: YES)

I have checked the data and rechecked many times.
(https://www.zen-cart.com/tutorials/index.php?article=137)

I have installed other database applications on my Server before with no issues.

Is there anything else I should consider before contacting my host?

Many thanks in advance

6 Feb 2009, 9:24 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Connection to Database failed.

Assuming you've correctly entered the proper database/user/password/server details, it would seem that you've not set valid permissions on the database user you created: https://www.zen-cart.com/tutorials/index.php?article=268

Keep in mind that some hosting control panels add a username prefix to all database users you create. ie: if your cPanel username is "jennifer" and you create a database user named "store", then your actual database username will be "jennifer_store". Likewise your database name will have a prefix assigned to it as well. Check with your hosting company if you're uncertain about the correct details to enter.

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