OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access denied for user 'agnitas'@'localhost' (using password

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation
View previous topic :: View next topic  

Have you had this problem?
Yes
100%
 100%  [ 2 ]
No
0%
 0%  [ 0 ]
Total Votes : 2

Author Message
em4u



Joined: 15 Jan 2008
Posts: 14
Location: UK

PostPosted: Fri May 09, 2008 7:10 pm    Post subject: Access denied for user 'agnitas'@'localhost' (using password Reply with quote

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
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 529
Location: Munich, Germany

PostPosted: Fri May 09, 2008 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
em4u



Joined: 15 Jan 2008
Posts: 14
Location: UK

PostPosted: Fri May 09, 2008 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 529
Location: Munich, Germany

PostPosted: Sat May 10, 2008 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
em4u



Joined: 15 Jan 2008
Posts: 14
Location: UK

PostPosted: Sat May 10, 2008 9:21 pm    Post subject: Reply with quote

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. Laughing Razz Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group