Installation Instructions for Examplegear Database v2.0
These instructions are based on Mac OS X, although the steps should be easily transferable to another operating system.
Before You Begin
These instructions assume you are using MySQL as your DBMS and have it installed it according to the instructions documented here. If you are using a different DBMS, you will need to adjust the SQL statements in the attached file to conform to the syntax of that DBMS.
Create the Examplegear Database Schema
| Command to go into the mysql command line program: mysql -u root mysql
Command to create the database schema: source CreateExamplegearDatabase_v2.sql | |||||
Verify the database creation was successful
| Commands to verify the database creation: use examplegeardb; show tables;
Output of the database creation verification commands: Commands to verify row counts: SELECT 'Addresses' AS TableName, COUNT(*) AS RowCount FROM Addresses UNION SELECT 'Customers' AS TableName, COUNT(*) AS RowCount FROM Customers UNION SELECT 'Departments' AS TableName, COUNT(*) AS RowCount FROM Departments UNION SELECT 'Employees' AS TableName, COUNT(*) AS RowCount FROM Employees UNION SELECT 'LineItems' AS TableName, COUNT(*) AS RowCount FROM LineItems UNION SELECT 'Products' AS TableName, COUNT(*) AS RowCount FROM Products UNION SELECT 'Ref_AddressTypeCode' AS TableName, COUNT(*) AS RowCount FROM Ref_AddressTypeCode UNION SELECT 'Ref_CountryCode' AS TableName, COUNT(*) AS RowCount FROM Ref_CountryCode UNION SELECT 'Ref_EmployeeStatusCode' AS TableName, COUNT(*) AS RowCount FROM Ref_EmployeeStatusCode UNION SELECT 'Ref_OrderStatusCode' AS TableName, COUNT(*) AS RowCount FROM Ref_OrderStatusCode UNION SELECT 'Sales' AS TableName, COUNT(*) AS RowCount FROM Sales ; Output of the row count verification commands: | |||||
Create the Data Source ProfileTo support running SQL queries against the examplegeardb database using the SQL for Confluence (Express Edition) add-on or SQL for Confluence (Pro Edition) add-on, you must build a data source profile.
| Parameters for the new examplegeardb data source profile:
Configure SQL for Confluence screen: | |||||