bogeblad / infoglue

Infoglue is a enterprise grade Java WCMS
www.infoglue.org
78 stars 67 forks source link

Install.action : database step - database creation #6

Open astik opened 13 years ago

astik commented 13 years ago

I want infoglue to create the database from scratch, so that I check the "Create new database automatically" checkbox. If I try to do it : "Access denied for user 'root'@'localhost' to database 'infoglue2'" So I though creating the database before and settings the propers access right to the database but if the database already exist, even if it's empty, it fails : "Can't create database 'infoglue2'; database exists". For now, I think I have to prevent database creation into the Installation process java action.

astik commented 13 years ago

Maybe it would be better to split database creation and database fillin as some administrator would authorize application to play with a specific database but not the entire system.

bogeblad commented 13 years ago

I have tries that many times and it do work for me - did you test with the absolute latest code? I did some changes yesterday for example. We can consider splitting it but I think the wizard allready can work with a precreated database but we should test it well. By the way - I did some ugly but practical changes in the old ant-scripts to support installing infoglue with git and ant + new inline configuration tool.

The basics are: git clone git://github.com/bogeblad/infoglue.git ant install

The only thing that needs in build.properties are deploy.dir.shared=/Applications/InfoGlue/tomcat/ deploy.dir.cms=/Applications/InfoGlue/tomcat/webapps/infoglueCMS deploy.dir.working=/Applications/InfoGlue/tomcat/webapps/infoglueDeliverWorking deploy.dir.preview=/Applications/InfoGlue/tomcat/webapps/infoglueDeliverPreview deploy.dir.live=/Applications/InfoGlue/tomcat/webapps/infoglueDeliverLive

and here you can comment out the deliver apps you don't want.

Can we get something similar in the new maven-based setup?

astik commented 13 years ago

It's weird you can't reproduce that case, I'll do more test to validate that.

Speaking of maven easy set up, I'm working hard on simplifying all the process and having the simpliest way of testing 0 day code. Right now, it still needs some work =)