# Creating a database for an Enterprise Architect model

- Download the database script to create the necessary tables from [https://sparxsystems.com/downloads/corp/scripts/EASchema\_1558\_MySQL.sql](https://sparxsystems.com/downloads/corp/scripts/EASchema_1558_MySQL.sql)
- Save the EASchema\_1558\_MySQL.sql file in the directory C:\\EAInfoport\\Dataprojekt
- Start the (line) program MySQL 5.7 Command Line Client
- Log in with the root (administrator) password
- Create the database “ea” using the command *CREATE DATABASE ea;*
- Switch to the database using the *USE ea* command;
- Create the tables needed for Enterprise Architect to work with the command *SOURCE* C:\\EAInfoport*\\Dataprojekt\\EASchema\_1558\_MySQL.sql*
- End the program

[DBMS Based Repositories For Enterprise Architect | Sparx Systems](https://sparxsystems.com/resources/repositories/)