Error: select command denied to user ''@'' for table ''
前端 未结 14 1751
被撕碎了的回忆
被撕碎了的回忆 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 16:49

    I had the same problem. I was very frustrating with it. Maybe this is not answering the question, but I just want to share my error experience, and there may be others who suffered like me. Evidently it was just my low accuracy.

    I had this:

    SELECT t_comment.username,a.email FROM t_comment
    LEFT JOIN (
        SELECT username,email FROM t_un
    ) a
    ON t_comment.username,a.email
    

    which is supposed to be like this:

    SELECT t_comment.username,a.email FROM t_comment
    LEFT JOIN (
        SELECT username,email FROM t_un
    ) a
    ON t_comment.username=a.username
    

    Then my problem was resolved on that day, I'd been struggled in two hours, just for this issue.

提交回复
热议问题