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

    This problem happened to me because I had the hibernate.default_schema set to a different database than the one in the DataSource.

    Being strict on my mysql user permissions, when hibernate tried to query a table it queried the one in the hibernate.default_schema database for which the user had no permissions.

    Its unfortunate that mysql does not correctly specify the database in this error message, as that would've cleared things up straight away.

提交回复
热议问题