Unable to connect to db on windows

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

schrei5
Posts: 2
Joined: Wed Feb 20, 2008 11:05 am

Unable to connect to db on windows

Post by schrei5 »

Hi,

I just tried to install OpenEMM but got the following problem:

Code: Select all

Starting up .. home is c:\OpenEMM .. found codebase .. setup:
Setup database, please enter the super user password defined during MySQL instllation:
Enter password: ****
Database created, now setting up initial data, please enter again your databae super user password:
Enter password: ****
Database setup completed.
Failed to connect to database
[press return]
The openemm db and the tables have been created but the script is not able to connect to the database and it doesn't says why :-(
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Setup of OpenEMM for Windows

Post by maschoff »

This article describes (in German) how to set up OpenEMM for Windows:

http://www.agnitas.de/pdf/OpenSource-407.pdf

Maybe it provides some helpful tips.
OpenEMM Maintainer
blackeagle
Posts: 3
Joined: Wed Feb 20, 2008 10:57 am
Location: Austria
Contact:

failed to connect to database

Post by blackeagle »

hello,

i have the same problem. i have checked other articles in the openemm forum, but i cannot solve this problem.

so maybe anyone can help with this problem, please?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

What version of OpenEMM do you use?
OpenEMM Maintainer
blackeagle
Posts: 3
Joined: Wed Feb 20, 2008 10:57 am
Location: Austria
Contact:

unable to connect

Post by blackeagle »

hello,

I use the version 5.3., but I also tried the new version 5.4. both with the same result.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

For version 5.4 try:

#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?
OpenEMM Maintainer
blackeagle
Posts: 3
Joined: Wed Feb 20, 2008 10:57 am
Location: Austria
Contact:

now it works

Post by blackeagle »

hello,

Thanks. It works. I can´t believe it, but it is true! That´s it!! :D :D :D
schrei5
Posts: 2
Joined: Wed Feb 20, 2008 11:05 am

thanks...

Post by schrei5 »

...works for me too
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Thanks!

Post by maschoff »

Great. I posted a bug report to our bugtracker on SourceForge and will make sure, that the problem ist fixed in RC2. Thanks for your feedback!
OpenEMM Maintainer
Post Reply