Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Select Permission Denied on Test Database

Select Permission Denied on Test Database

Locked

Views: 1,138

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Feb 2010, 8:54 PM
#1
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

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.

20 Feb 2010, 9:20 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

20 Feb 2010, 9:42 PM
#3
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Select Permission Denied on Test Database

Ajeh:

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.

24 Feb 2010, 10:35 PM
#4
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Select Permission Denied on Test Database

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

Thanks.