Database Schema Creation
This document provides information on how to find the SQL for database table creation.
Often, DBAs will require that table creation be done manually. To find the required SQL statements, you can use the script generated from our evaluation version's HSQLDB database.
- Install Confluence with no external database.
- Shut down Confluence.
- Find the file located in
<confluence-home>/database/confluencedb.script.
The confluence-home directory is not your installation directory, its the directory specified in confluence-init.properties. For more information, see Confluence Home Directory and Confluence Installation Directory.
To see some example SQL statements, click 'Tools' and select 'Attachments' on this wiki page.
To get Confluence to run against this established schema, configure the database with the normal procedure, then modify the hibernate.connection.url, username and password from confluence-home/confluence.cfg.xml or server.xml, depending on whether it's a direct jdbc or resoruce connection. This is described in Migrating Confluence Between Servers.







3 Comments
Hide/Show CommentsJan 28, 2008
Jay Compton
Hi, would it be helpful if I exported an empty install schema from DB2 to contribute to this? I have one for Confluence 2.7.
Jan 29, 2008
Mei Yan Chan
Hi Jay,
Feel free to share with us if possible. Thanks.
Regards,
Mei
Feb 24, 2008
James Fleming [Atlassian]
Jeremy,
This page may be a good complement.
Add Comment