Topics
Prev Next

Create a Project in a MariaDB Database

To create a project in a repository on MariaDB, you work through these stages:

  • Stage 1: Create an empty database repository and set up the data tables
  • Stage 2: Set up the ODBC Driver
  • Stage 3: Perform a project integrity check on the project file you are using as a base (optional, but recommended)
  • Stage 4: Transfer the data
  • Stage 5: Connect to the repository and open the project

Prerequisites

  • A machine with MariaDB version 10.1.2 or higher installed and running,
  • MariaDB ODBC

Create a MariaDB Repository

Create the repository as outlined here.

Step

Action

See also

1

Create a new empty database and configure it to your installation's defaults.

Create a MySQL Repository Registered User's Scripts page Trial User's Scripts Page

2

Load the EASchema_1220_MySQL.sql file from the Sparx Systems website into your SQL management console of choice (such as HeidiSQL).

3

Run the script to create the required database schema.

Set Up the ODBC DSN

Step

Action

See also

1

Create a suitable ODBC Data Source to point to your new database.

Select the extended option:

  • 'Return matched rows instead of affected rows'
Set up a MySQL ODBC Driver

Perform a Project Integrity Check

Step

Action

See also

1

In Enterprise Architect, open the file-based project or template from which you are creating the project on the repository.

2

Select and execute the 'Configure > Model > Check Integrity > Project Integrity' ribbon option.

This ensures your project data is 'clean' and free from errors before being copied to the repository.

Project Integrity Check

Transfer the Project Data

Step

Action

See also

1

Open Enterprise Architect.

(If the 'Open Project' dialog displays, click on the Cancel button to open with no project loaded.)

2

Select the 'Configure > Model > Transfer > Project Transfer' ribbon option.

The 'Project Transfer' dialog displays.

3

In the 'Transfer Type' panel, select 'File to DBMS'.

4

In the 'Source Project' field, click on the button and browse for the name of the project file to copy to the repository.

If the .EAP file has Replication enabled, this must be removed before performing the transfer.

Remove Replication

5

At the right of the 'Target Project' field, click on the button.

The 'Datalink Properties' dialog displays.

6

Select 'Microsoft OLE DB Provider for ODBC Drivers' from the list.

Click on the Next button.

7

In the 'Use Data source name' field, click on the drop-down arrow and select the ODBC Data Source you configured to point to your new database.

Click on the OK button. The 'Project Transfer' dialog redisplays.

Set up a MySQL ODBC Driver

8

If required, select the 'Logfile' checkbox and type a path and filename for the data transfer log file.

9

Click on the Transfer button to begin the data transfer process.

10

When the process is complete, you have created a project on a MariaDB database and can now connect to it and open it from Enterprise Architect.

Connect to a MySQL Data Repository

Learn more