Forums / Installing on a Linux/Unix Server / Database Installation - Access Denied

Database Installation - Access Denied

Locked
Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Nov 2009, 12:06
#1
alho1 avatar

alho1

New Zenner

Join Date:
Nov 2009
Posts:
12
Plugin Contributions:
0

Database Installation - Access Denied

re.: zen-cart-v1.3.8a
System FreeBSD rweb7.000025.net Kernel version 6.2-RELEASE-p2
PHP Version 5.2.10
MySQL Server version: 4.1.25


Connection to Database failed
Access denied for user 'admin'@'localhost' (using password: YES)

...............................................................

1.
This problem occurs when attempting a first installation of zen-cart.

2.
cPanel was used to set up:
(a) MySQL Database;
(b) A user/password with 'ALL' permissions to that database.

3.
The database name seems to be correct, because a different error occurs when a "nonsense" database name is inserted.
cPanel did prepend the cPanel logon username to the database name as indicated in the FAQ,
but if the full name is inserted (with the added prefix) the error message indicates that the database name is not recognised.

...............................................................


Any ideas?

AL
11 Nov 2009, 12:30
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: Database Installation - Access Denied

Try using your CPanel user and password. If that works, check to see if your hosting account also prepends the CPanel user name to the user name you set up for the DB. Mine does.
11 Nov 2009, 15:00
#3
alho1 avatar

alho1

New Zenner

Join Date:
Nov 2009
Posts:
12
Plugin Contributions:
0

Re: Database Installation - Access Denied

Thank you stevesh!

A very prompt and apposite reply.

Yes, it is the CPanel username and password which is required, as you say.

Furthermore, the database name does include the prefix, as you suggested. I had been led astray by the error messages I was getting when using the MySQL login details - when I was using that login, the prepended name elicited a 'no such database' error, or words to that effect, whereas the name without the prefix did not (not sure why that is).

On to the next hurdle now.

Thank you again.


AL
17 Nov 2009, 10:58
#4
rojertwose avatar

rojertwose

New Zenner

Join Date:
Nov 2009
Posts:
3
Plugin Contributions:
0

Re: Database Installation - Access Denied

Hello
I have the problem of installation of mysql database..
I get the exact same response when I try to run $ sudo gem install mysql
I'm on Mac OS X Leopard 10.5, fresh system.

Please help me?
Thanks..