Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2010
    Posts
    3
    Plugin Contributions
    0

    Default Cannot connect to database

    I am getting this...

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

    Error.

    I have made a database in Cpanel, noted the extensions it added to the username and database name I requested, and added and set all permissions for the user I am trying to use.

    I've tried adding some tables to the database using PHP My admin and I could create a table.

    I am using localhost as the database host, and I have tried using remote MySQL hosts as well but neither works.

    This is a clean install of the newest version of zencart.

    Thanks for the help, this is driving me nuts!

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Cannot connect to database

    cPanel is prefixing your choice of user name and database with "pontiac_". Are you including these in the information that you're putting into your configure file?

    Are you updating both configure files?

    Are you making sure that your configure files are writeable before editing them?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Cannot connect to database

    Quote Originally Posted by kuroi View Post
    cPanel is prefixing your choice of user name and database with "pontiac_". Are you including these in the information that you're putting into your configure file?

    Are you updating both configure files?

    Are you making sure that your configure files are writeable before editing them?
    I'm not putting anything in a configuration file, I still haven't got past the database step in the install process.

    I'm adding the prefix that Cpanel is giving me for both the directory and username, and I set all access rights like the install instructions said to do.

    I think the installer checks to see if everything is writable like it should be before it lets you go on. I'm pretty sure everything is as it should be.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Cannot connect to database

    When you set up your database and user name, did you link the user name to the database?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Cannot connect to database

    One other thing to try is to enter your CPanel user name (with appropriate prefix) and password (which are the default mySQL login credentials) as your Zencart DB login. If that works, then the DB user you set up isn't right somehow.

  6. #6
    Join Date
    Jul 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Cannot connect to database

    I found out what it was, I was using the create password feature in Cpanel and it was giving me crazy passwords like "g34D34%321f#f.
    }=r"

    I don't think Zencart likes the symbols, because if you take those out it works fine


    Thanks for the tips!

 

 

Similar Threads

  1. v138a Cannot connect to database
    By blueroomhermit in forum General Questions
    Replies: 10
    Last Post: 17 Nov 2013, 03:43 AM
  2. Cannot connect to database
    By Decostyle in forum General Questions
    Replies: 2
    Last Post: 7 Oct 2008, 08:40 PM
  3. Cannot connect to database
    By actorxfactor in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 18 Sep 2007, 10:05 PM
  4. Cannot Connect To Database...
    By kbalona in forum General Questions
    Replies: 2
    Last Post: 3 May 2007, 07:41 PM
  5. cannot connect to database
    By east coast in forum General Questions
    Replies: 1
    Last Post: 23 May 2006, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg