Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Select Permission Denied on Test Database

    I've created a test store based off of my existing store following some instructions that I found on the forums. Here's a quick version of the steps that I followed.

    - Downloaded my store files locally.
    - Did a backup of my store database using phpMyAdmin
    - Created a test directory for my test store. /teststore
    - Created a test database for my test store.
    - Imported my db backup into the new test db using phpMyAdmin.
    - Created a test user for my test store db and gave that user ALL permissions to the test db using cPanel.
    - Modified the /includes/configure.php and admin/includes/configure.php files in my /teststore directory to point to the new test environment and test database.

    When I try to access my test store, I get a "1142 SELECT command denied to user."

    I've double checked the username/password for the db user and double checked the 2 configuration files, are there any steps that I missed?

    Thanks in advance.
    Zen-Cart 1.3.8a | PHP 5.2.2

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Select Permission Denied on Test Database

    Check the user in your Control Panel that you did not just make a user and add it to the database but that you ALSO gave the user all of the permissions to use the database ...

    In the MySQL where you setup the database and user you will see the username connected to the database ... the username is a link to the permissions granted to that user ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: Select Permission Denied on Test Database

    Quote Originally Posted by Ajeh View Post
    Check the user in your Control Panel that you did not just make a user and add it to the database but that you ALSO gave the user all of the permissions to use the database ...

    In the MySQL where you setup the database and user you will see the username connected to the database ... the username is a link to the permissions granted to that user ...
    I did select All Privileges after clicking on the user name and saved the changes which is what led me to this post. According to cPanel, it updated the privileges for that user.

    Been trying to verify permissions in phpMyAdmin, but it doesn't let me.
    Zen-Cart 1.3.8a | PHP 5.2.2

  4. #4
    Join Date
    Feb 2010
    Posts
    14
    Plugin Contributions
    0

    Default Re: Select Permission Denied on Test Database

    Hey everyone, does anyone have any other suggestions on this?

    Thanks.
    Zen-Cart 1.3.8a | PHP 5.2.2

 

 

Similar Threads

  1. 403 Permission Denied
    By kjharrison in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 26 Sep 2010, 06:25 PM
  2. 13 permission denied
    By M.Int in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 May 2010, 12:56 AM
  3. permission denied error
    By Muzz in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 5 May 2010, 11:59 PM
  4. No Images Showing Up / Permission Denied
    By dangrasley in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 4 Dec 2007, 04:56 PM
  5. Permission Denied?
    By oamurai in forum Installing on a Windows Server
    Replies: 2
    Last Post: 21 May 2007, 04:03 PM

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