Get the book
Old 11th November 2009, 01:06 PM   #1
Alho1
New Zenner
 
Join Date: Nov 2009
Posts: 2
Default 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
Alho1 is offline   Reply With Quote
Old 11th November 2009, 01:30 PM   #2
stevesh
Totally Zenned
 
stevesh's Avatar
 
Join Date: Feb 2005
Location: Lansing, Michigan USA
Posts: 7,196
Default 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.
stevesh is online now   Reply With Quote
Old 11th November 2009, 04:00 PM   #3
Alho1
New Zenner
 
Join Date: Nov 2009
Posts: 2
Default 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
Alho1 is offline   Reply With Quote
Old 17th November 2009, 11:58 AM   #4
rojertwose
New Zenner
 
Join Date: Nov 2009
Posts: 3
Default 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..
__________________
bildschirmschoner aquarium
rojertwose is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied creativesweettreats Setting Up Categories and Products 0 11th October 2009 04:26 AM
Access Denied aussiedaz Installing on a Linux/Unix Server 1 4th February 2009 12:30 AM
Connection to Database failed Access denied for user 'ziock@'localhost' (using zick087 Installing on a Windows Server 1 4th January 2009 08:14 AM


All times are GMT +1. The time now is 02:14 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads