could not connect to database

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

Moderator: moderator

mittax
Posts: 9
Joined: Tue Jul 24, 2007 3:22 pm

could not connect to database

Post by mittax »

Hello Friends,

I installed openemm how discribed in the manual. First python 2.5 then the mysql-module then the jdk 6.09 update.

if i run setup.bat i must enter the mysql password ...till here all is fine.

then i must enter the password again. after this i got the error "could not connect to database".

mysql is running and all the tables for openemm are installed. the user agnitas is registered in mysql to.

what could be the matter?
if i edit the openemm.py script and delete the mysql check, the tomcatserver could start but with an mysql-exception....logical

greets mitteax
alex78
Posts: 11
Joined: Mon Jul 02, 2007 12:32 pm
Location: Munich

Post by alex78 »

Hi,

Could you insert the following line into openemm.py after line 135 ("if not i:")

Code: Select all

        print db.lasterr.args


( please pay attention to the indentation of "print...")
Then run it again.
A more detailed error message should be printed.

-- Alex78
mittax
Posts: 9
Joined: Tue Jul 24, 2007 3:22 pm

it works but ..

Post by mittax »

Thank you.

I connect on port 3307 so i got do add the parameter port in the db.connect.

now i got the message "running".

but now it happend nothing. the resin-server doesnt start. if i start http.exe manualy i got the message "no resin_home" found.

if i open the config files there is a xml tag "server". it contains

<server xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">

but unter this url there is nothing.


whats the matter?

Greet mittax
mittax
Posts: 9
Joined: Tue Jul 24, 2007 3:22 pm

please close

Post by mittax »

i solved it. i got no valid enviroment-variable

thx
mitrax
Posts: 3
Joined: Thu Aug 16, 2007 2:25 pm

Post by mitrax »

Where da i find a file like db.connect?
Or where do give the parameter for database connection (port number etc.)?
Post Reply