hibernate - web application can't query from MySQL on server -


i have web application (jsf+hibernate) deployed on tomcat server tries connect mysql database on server, have added web app server ip allowed when connecting mysql server, when start app get

23:55:50,077  warn sqlexceptionhelper:144 - sql error: 1142, sqlstate: 42000 23:55:50,077 error sqlexceptionhelper:146 - select command denied user 'xxx'@'yyyy' table 'zzz' org.hibernate.exception.sqlgrammarexception: not extract   resultset ... 

please note that, have given user privileges, can connect database net beans , query normally. running web application , mysql on local host, working fine.

make sure have same database name locally , on remote server. database hosts add prefix or suffix database name in conflict have in hibernate.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -