Wo befindet sich: db_setup.sql ?

cancel
Showing results for 
Search instead for 
Did you mean: 
vertex
Member II

Wo befindet sich: db_setup.sql ?

Ich habe ein bestehendes System auf Basis von Ubuntu Server 10.04 (64bit) u.a. mit Tomcat 6 am Laufen und aus diesem Grund wollte ich gerne Alfresco 3.4a mit alfresco-community-3.4.a.zip manuell aufsetzen.

Ich muss leider sagen, dass die zur Verfügung stehenden Anleitungen vielfach nicht dem aktuellen Revisionsstand entsprechen und zudem viele der zur Installation vorgeschlagenen Archive nicht bzw. nicht mehr exsistieren, was die Installation nicht gerade vereinfacht.

Besonders schwerwiegend ist, dass das zur Einrichtung der MySQL Datenbank erforderliche File: db_setup.sql in meinem obigen Archiv nicht enthalten ist und ich es trotz intensiver Suche nicht finden konnte. Wäre nett, wenn mir jemand diesbezüglich helfen könnte. Ohne das Einrichtungsscript ist das Archiv wertlos.

Auf das automatische Installations-Archiv (alfresco-community-3.4.a-installer-linux-x64.bin) möchte ich ungern zurückgreifen, da aus der Beschreibung nicht hervorgeht, was genau eingerichtet und installiert wird (wird z.B. ein bereits eingerichtetes MySQL genutzt ?)- im ungünstigsten Fall beschädigt es uU meine vorhandene Installation, was ich verständlicherweise vermeiden will.
4 Replies
thomash
Member II

Re: Wo befindet sich: db_setup.sql ?

Hallo Vertex,

da du die WAR basierte Installation nutzt brauchst du das db_setup.sql script nicht. Es wird vom Installer genutzt um die Datenbank in der lokalen DB einzurichten.
Das db_setup.sql script legt dir eine Datenbank mit dem Namen alfresco an, erzeugt einen User namens alfresco und gibt ihm alle Rechte auf der Datenbank.
Hier siehst du den gesamten Inhalt dieses Skripts:

create database alfresco default character set utf8 collate utf8_bin;
grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option;
grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option;

Bei einer WAR basierten Installation gehen wir davon aus das eine bereits existierende Datenbank eingesetzt wird.
Du musst nur eine MySQl Datenbank anlegen und dazu einen User der create Rechte auf dieser Datenbank besitzt. Den Datenbanknamen, Host sowie du Zugangsdaten des Users trägst du dann in der shared/classes/alfresco-global.properties ein, das wars dann schon.


dir.root=c:/alfresco/datastores/alfresco_34ee/alf_data
dir.indexes=c:/alfresco/datastores/alfresco_34ee/alf_indexes
#
# Sample database connection properties
#————-
db.name=alfresco_db
db.username=alfresco_user
db.password=alfresco_pw
db.host=localhost
db.port=3306

Das DB Schema wird dann beim ersten Start von Alfresco automatisch erzeugt.
Über folgenden Link erhälst du übrigens Zugriff auf die Community Dokumentation
http://www.alfresco.com/community/resources/documentation
Viele Grüße
Thomas
vertex
Member II

Re: Wo befindet sich: db_setup.sql ?

Hallo Thomas,

vielen Dank für die schnelle Antwort. Diese Infos helfen mir weiter, nochmals danke.

Gruß
Vertex
vertex
Member II

Re: Wo befindet sich: db_setup.sql ?

Soweit hat alles gut funktioniert, allerdings habe ich jetzt das Problem, dass ich mich nicht einloggen kann. Das Log gibt mir keinen echten Hinweis:
22:53:44,047 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
22:53:44,050 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
22:53:44,050 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
22:53:44,050 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
22:53:44,050 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/var/lib/tomcat6/shared/classes/alfresco-global.properties]
22:53:44,101 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
22:53:59,454 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
22:53:59,457 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
22:54:40,115 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
22:54:50,958 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
22:54:52,672 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
22:54:53,700 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
22:54:54,494 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
22:54:57,999 WARN  [org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap] StoreRef 'workspace://SpacesStore' does not exist
23:34:31,499 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
23:34:31,501 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
23:34:31,502 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
23:34:31,502 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
23:34:31,502 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/var/lib/tomcat6/shared/classes/alfresco-global.properties]
23:34:31,550 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
23:34:46,189 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
23:34:46,192 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
23:35:22,148 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
23:35:33,867 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
23:35:35,604 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
23:35:36,377 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
23:35:37,379 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
23:35:40,921 WARN  [org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap] StoreRef 'workspace://SpacesStore' does not exist
Wo könnte das Problem liegen ?

Gruß
Vertex
thomash
Member II

Re: Wo befindet sich: db_setup.sql ?

Hallo,

nicht einloggen können heisst inder Regel das das Repo nicht sauber bzw. vollständig da ist.
Hast du versucht dich über Share oder am Explorer anzumelden?
In deinem Log steht am Ende ja bereits ne Warning drin. Könnte ein Anhaltspunkt sein.
Könntest du eventuell das vollständige Logfile inkl. der Logausgabe des Tomcats posten.
Gruß
Thomas