2013-01-23 51 views
0

我APP:niaola.cloudfoundry.com 的Java 1.6 mysql5.1無法更新數據庫

選擇代碼

 update yy_desklist set isok=? where 
    isok=? and timedrelease<=? Parameters: [1, 0, 1358929049] 

錯誤日誌:

 at java.lang.Thread.run(Thread.java:662) 
     Caused by: java.sql.SQLException: UPDATE command denied to user 'uHHztgqtQsbK9'@ 
     '172.30.49.102' for table 'yy_desklist' Query: update yy_desklist set 
     isok=? where isok=? and timedrelease<=? Parameters: [1, 0, 1358929049] 
       at org.apache.commons.dbutils.QueryRunner.rethrow(QueryRunner.java:542) 
       at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:599) 
       at com.niaola.yangyun.db.QueryHelper.update(QueryHelper.java:300) 
       ... 44 more 
     com.niaola.yangyun.db.DBException: java.sql.SQLException: UPDATE command denied 
     to user 'uHHztgqtQsbK9'@'172.30.49.102' for table 'yy_desklist' Query: update 
     yy_desklist set isok=? where isok=? and timedrelease<=? 
     Parameters: [1, 0,1358930631] at com.niaola.yangyun.db.QueryHelper.update(QueryHelper.java:302) 
     at com.niaola.yangyun.mvc.TempletsClass.getTimedList(TempletsClass.java:57) 
+2

你沒有權限使用GRANT查詢 –

+0

看起來像一個權限問題給我。 – Swapnil

回答