Error: select command denied to user ''@'' for table ''
前端 未结 14 1896
被撕碎了的回忆
被撕碎了的回忆 2020-11-27 16:30

In my website, I am using MySQL database. I am using a webservice where in I do all my database related manipulations.

Now In one of the methods of that webservice,

14条回答
  •  一个人的身影
    2020-11-27 17:02

    The problem is most probably between a . and a _. Say in my query I put

    SELECT ..... FROM LOCATION.PT

    instead of

    SELECT ..... FROM LOCATION_PT

    So I think MySQL would think LOCATION as a database name and was giving access privilege error.

提交回复
热议问题