MySQL Error: #1142 - SELECT command denied to user

后端 未结 11 1102
情话喂你
情话喂你 2020-12-01 09:04

I\'m having troubles with a certain query on one of my servers. On all other places I\'ve tested it it works completely fine but on the server i want to use it it isn\'t wor

11条回答
  •  孤街浪徒
    2020-12-01 09:50

    This error also arises for a syntax error occurred due to aliasing tablename.

    For instance, when executed below query,

    select * from a.table1, b.table2 where a.table1= b.table2

    below error occurs:

    MySQL Error: #1142. Response form the database. SELECT command denied to user "username@ip" for table "table1"

    Solution : Syntax to alias tablename should be used proper, syntax solution for above instance >select * from table1 a, table2 b where a.table1= b.table2

提交回复
热议问题