| View previous topic :: View next topic |
| Have you had this problem? |
| Yes |
|
100% |
[ 2 ] |
| No |
|
0% |
[ 0 ] |
|
| Total Votes : 2 |
|
| Author |
Message |
em4u
Joined: 15 Jan 2008 Posts: 14 Location: UK
|
Posted: Fri May 09, 2008 7:10 pm Post subject: Access denied for user 'agnitas'@'localhost' (using password |
|
|
Please can someone help me. I am getting this message:
An error occurred
Cause: javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'agnitas'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'agnitas'@'localhost' (using password: YES))
Everything else appears to be working have I missed something in the installation manual. |
|
| Back to top |
|
 |
ma Site Admin
Joined: 03 Aug 2006 Posts: 529 Location: Munich, Germany
|
Posted: Fri May 09, 2008 8:32 pm Post subject: |
|
|
OpenEMM can not access the database. Please try this:
| Code: | #mysql -u root -p
>GRANT DELETE, INSERT, UPDATE, LOCK TABLES, SELECT, ALTER, INDEX, CREATE TEMPORARY TABLES, DROP, CREATE ON openemm.* TO 'agnitas'@'localhost' IDENTIFIED BY 'openemm';
>FLUSH PRIVILEGES;
>quit |
This creates user agnitas with the necessary permissions in case the user does not exist already. Does this work? _________________ The OpenEMM Team |
|
| Back to top |
|
 |
em4u
Joined: 15 Jan 2008 Posts: 14 Location: UK
|
Posted: Fri May 09, 2008 11:47 pm Post subject: |
|
|
Thanks very much - it's certainly moved us on a big step. I am, now getting the error below: From my browser
An error occurred
Cause: javax.servlet.ServletException: org.springframework.jdbc.BadSqlGrammarException: Hibernate operation: could not execute query; bad SQL grammar [select emmlayout0_.layout_id as layout1_6_, emmlayout0_.company_id as company2_6_, emmlayout0_.header_url as header3_6_, emmlayout0_.footer_url as footer4_6_, emmlayout0_.base_url as base5_6_, emmlayout0_.normal_color as normal6_6_, emmlayout0_.highlight_color as highlight7_6_ from emm_layout_tbl emmlayout0_ where emmlayout0_.company_id=0 and emmlayout0_.layout_id=?]; nested exception is java.sql.SQLException: Table 'openemm.emm_layout_tbl' doesn't exist |
|
| Back to top |
|
 |
ma Site Admin
Joined: 03 Aug 2006 Posts: 529 Location: Munich, Germany
|
Posted: Sat May 10, 2008 10:43 am Post subject: |
|
|
Seems to be that you have not created the database yet, because OpenEMM can not find table emm_layout_tbl. Therefore:
| Code: | # mysqladmin -u root -p create openemm
# mysql -u root -p openemm < openemm.sql
|
_________________ The OpenEMM Team |
|
| Back to top |
|
 |
em4u
Joined: 15 Jan 2008 Posts: 14 Location: UK
|
Posted: Sat May 10, 2008 9:21 pm Post subject: |
|
|
Thank you very much for all you help. It worked and we are able to access our server remotely. We are now going to start to learn how to "drive" it. Really appreciate your quick response.  |
|
| Back to top |
|
 |
|