Reusing existing MySQL database and repository!
PostPosted:Thu Sep 04, 2014 2:33 am
Hello!
I just reinstalled OpenKM 6.3.0 (Build 8156) on a new Centos server. I am reusing an existing MySQL database and repository with thousands of documents from an older server.
While the installation on the new server and the configuration went very well, I messed up with the database and repository. Basically, I set the property of
hibernate.hbm2ddl=none
to
hibernate.hbm2ddl=create
Which basically seems to have totally deleted the repository!! Thanks Lord I had backups!
The MySQL database seems intact but I am not 100% sure. I may be restoring from a SQL dump if necessary.
This appeared in catalina.log
Thanks!!
I just reinstalled OpenKM 6.3.0 (Build 8156) on a new Centos server. I am reusing an existing MySQL database and repository with thousands of documents from an older server.
While the installation on the new server and the configuration went very well, I messed up with the database and repository. Basically, I set the property of
hibernate.hbm2ddl=none
to
hibernate.hbm2ddl=create
Which basically seems to have totally deleted the repository!! Thanks Lord I had backups!
The MySQL database seems intact but I am not 100% sure. I may be restoring from a SQL dump if necessary.
This appeared in catalina.log
Code: Select all
How do I restore repository and SQL database with a working OpenKM install??014-09-03 22:21:52,753 [localhost-startStop-1] INFO com.openkm.servlet.RepositoryStartupServlet- *** Application version: 6.3.0 (build: 8156) ***
2014-09-03 22:21:52,753 [localhost-startStop-1] INFO com.openkm.servlet.RepositoryStartupServlet- *** Hibernate initialize ***
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.dialect' = org.hibernate.dialect.MySQL5InnoDBDialect
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.connection.datasource' = java:/comp/env/jdbc/OpenKMDS
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.hbm2ddl.auto' = create
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.show_sql' = false
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.generate_statistics' = false
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.search.default.directory_provider' = org.hibernate.search.store.FSDirectoryProvider
2014-09-03 22:21:54,863 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Hibernate 'hibernate.search.default.indexBase' = /mnt/servers-content/openkm-datastore/index
[b]2014-09-03 22:21:54,864 [localhost-startStop-1] INFO com.openkm.dao.HibernateUtil- Cleaning filesystem data from: /mnt/servers-content/openkm-datastore[/b]Thanks!!