Upsize to MySQL

This topic explains how to upsize your .EAP project or template for use with MySQL.

The process has the following stages:

  • Stage 1: Perform project integrity check
  • Stage 2: Install MySQL components
  • Stage 3: Select table type
  • Stage 4: Create an empty database repository
  • Stage 5: Set up the ODBC Driver
  • Stage 6: Transfer the data

Perform Project Integrity Check:

Step

Action

See also

1

Open the base project or template .eap file

 

2

Select and run Tools | Data Management | Project Integrity Check

This ensures your project data is 'clean' before uploading

Project Integrity Check

Install MySQL Components:

Step

Action

See also

1

Install MySQL version 4.0.3 or higher

Create a MySQL Repository

2

Install MySQL ODBC 5.1 or higher

 

Select Table Type:

If MyISAM table types are used (default), transactional support is disabled. To enable transactions you must set up MySQL to use InnoDB tables and create the database tables as InnoDB type.

Sparx provide scripts to create both InnoDB- and MyISAM-based repository tables.

Step

Action

See also

1

Set up the MySQL .ini file as required

 

2

If you are using InnoDB tables run the MySQL_InnoDB_EASchema.sql script

If you are using MyISAM tables run the MySQL_MyISAM_EASchema.sql script.

Sparx Systems website

Create Database Repository:

Step

Action

See also

1

Create an empty database repository

Create a New MySQL Repository

Set Up the ODBC Driver:

Step

Action

See also

1

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

Select the following checkboxes:

  • Return matched rows instead of affected rows
  • Allow big result sets

Set up a MySQL ODBC Driver

Transfer the Project Data:

Step

Action

See also

1

Open Enterprise Architect

Click on the Cancel button on the Open Project screen to open with no project loaded

 

2

Select the Tools | Data Management | Project Transfer menu option

The Project Transfer dialog displays

 

3

In the Transfer Type panel, select .EAP to DBMS

 

4

In the Source Project field, type the name of the .EAP file to upsize to MySQL

 

5

At the right of the Target Project field, click on the ( ... ) (Browse) 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

Connect to a MySQL Data Repository

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

 

When the process is complete, you have upsized your model to MySQL and can now open it from Enterprise Architect.