Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    16
    Plugin Contributions
    0

    Default database connections

    I have created the database called bookstore and have a username and password. but I still get the error:

    Connection to Database failed
    Access denied for user 'bmike'@'localhost' or

    Database does not exist
    Access denied for user ''@'localhost' to database 'books'

    What could be wrong?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: database connections

    This archived thread won't let you reply to it, but there are some general instructions in it that may be helpful in helping you grant the "user" permissions to use the "database" you created.

    http://www.zen-cart.com/forum/showth...reate+database
    .

    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.

  3. #3
    Join Date
    Dec 2005
    Location
    My Own Fluffy Place, Pangea
    Posts
    420
    Plugin Contributions
    0

    Default Re: database connections

    Can you connect to it some other way like via phpMyAdmin or through shell with that account?

    If no, try setting the user's host to localhost.
    Yeah! I'm small! I'm Fluffy! *Stick tongue out*

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: database connections

    Go to your web hosting control panel and click to Manage Databases, and then see what the actual name of the database is.

    It may be that you created a database called books but that the full name is yourdomain_com_-_books

    It may also be the case that your database address is not localhost but 127.0.0.1 (the ip address for localhost). If your host uses Red Hat Enterprise Linux as the operating system this will definitely be the case.

    Vger

 

 

Similar Threads

  1. v151 Exceeding database connections
    By mcpisik in forum General Questions
    Replies: 8
    Last Post: 4 Apr 2013, 06:09 AM
  2. User Database Connections Maxed Out
    By 93_S13 in forum General Questions
    Replies: 0
    Last Post: 9 Apr 2010, 07:20 PM
  3. Persistent Database Connections (USE_PCONNECT)
    By marcopolo in forum Basic Configuration
    Replies: 4
    Last Post: 16 Mar 2009, 11:33 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR