/build/static/layout/Breadcrumb_cap_w.png

Error message when trying to run SQL Statements within MY SQL WorkBench

I have been using MY SQL workbench for awhile to run statments and now am getting the following error message:

Error Code: 1142 Select command denied to user 'R1@IPaddress for table HD_Ticket'

Where I put IPaddress this shows the actual IP address in the error message.

Has anyone else seen this error message and if so how did you fix it?

 


0 Comments   [ + ] Show comments

Answers (5)

Posted by: X019 11 years ago
White Belt
0

What is you select statement?

Posted by: jdornan 11 years ago
Red Belt
0

Yes when there is a problem with your sql statement you will sometimes get this error.

Post your code and we can take alook and be of more help.

It usually is related ot a JOIN or UNION that has incorrect syntax or even a misspelled table name can cause it. Instead of telling you that table doesnt exists It will say basically you dont have permissions.

A usual suspect is the difference betwwen foo_BAR and foo.BAR

 

Select Denied for foo.Bar

Posted by: scarpent 11 years ago
6th Degree Black Belt
0

Thanks it's a long SQL statement; I found the problem. 

Posted by: grayematter 11 years ago
5th Degree Black Belt
0

I just recently started getting this after upgrading to 5.4.  I get this even with a simple query like

 SELECT ID
 FROM ASSET;

However, if I add the ORG1 schema, the query works:

SELECT ID
FROM ORG1.ASSET;

Any hints??

Posted by: jdornan 11 years ago
Red Belt
0

Well if you are inside mysql workbench just double click org 1 to make it the default db and you won't need to use this syntax. It assumes the 

use org1

go

syntax or prefixing the table with db name as you were doing

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ