Luna Modeler MySQL ER Diagram Maker
& Data Modeling Tool

FREE 14 days trial. No card required.
  • Ideal for MySQL Tables, views, triggers, procedures, functions. All MySQL-specific.
  • Synchronization features Update a data model or generate diff SQL scripts
  • For Everything You Need Connect to local, remote, or cloud MySQL. Get an ER diagram in seconds.
  • Excellent ROI No subscriptions. Just a desktop app that works.
Want an ER diagram maker that actually understands MySQL?

Luna Modeler isn't a generic drawing app. It knows MySQL - tables, indexes, foreign keys, triggers, all of it. Draw your schema, connect to a running database and reverse engineer what you already have. Then generate real SQL you can run.

Learn more about Luna Modeler

Who uses Luna Modeler?

It's perfect for web developers, freelancers, small teams, agencies, developers, data engineers, educators and anyone building apps on MySQL.

What You Can Do with
This MySQL ER Diagram Maker
MySQL ER diagram of an eCommerce project in Luna Modeler with customer, order, cart, product, vendor, address and country tables, foreign keys, an ENUM column and two views
MySQL ER diagram made in the Luna Modeler ER diagram maker

Make MySQL ER Diagrams Visually

Stop writing CREATE TABLE statements blind. Open Luna Modeler, add tables, set columns, define foreign keys. You see the whole schema at once. Relationships are clear. Dependencies are obvious.

It's a real MySQL ER diagram maker - not a generic box-and-line drawing app. So you get MySQL data types like ENUM, SET and TINYINT, plus indexes, constraints and triggers. Then generate SQL when you're ready.

Simple to Use. Seriously.

You don't need a training course. Open the app, start a MySQL project, add your first table. That's it. The interface stays out of your way.

Edit columns in the sidebar. Click a relationship to see its details. Everything saves automatically. And if you know data modeling already, you'll find the advanced stuff too.

Quick start guide for MySQL

Sakila MySQL ER diagram in Luna Modeler with the relationship details panel showing referential integrity, key columns and one-to-many cardinality
Edit relationships in a MySQL ER diagram
MySQL connection dialog in Luna Modeler with server, port 3306, user and database fields and SSH and SSL/TLS tabs
Connect to MySQL to generate an ER diagram

Already Have a Database? Generate the ER Diagram.

Point Luna Modeler at your MySQL database. It reads the schema and makes the ER diagram for you. Tables, columns, relationships, indexes - all there. Takes seconds.

Works with local MySQL, remote servers, cloud databases. The Professional Edition adds SSH and SSL/TLS for secure connections. Good for production servers you don't want to expose.

Read how to visualize existing database

Generate SQL from Your ER Diagram

Finished designing? One click gives you the full SQL script. CREATE TABLE, ALTER TABLE, indexes, foreign keys - ready to copy into your terminal or editor.

Need something custom? Write your own templates. Generate migration files, seed scripts, whatever your project needs.

Read how generate SQL scripts

MySQL SQL script with CREATE TABLE statements generated from an ER diagram in Luna Modeler
MySQL SQL script generated from an ER diagram
Report menu in Luna Modeler with Export diagram to PDF, Export diagram to PNG and Generate HTML report above a MySQL ER diagram
Export a MySQL ER diagram to PDF, PNG or an HTML report

Share Your Schema with the Team

Your ER diagram is useful. But only if others can see it too. Luna Modeler exports to:

  • Interactive HTML reports - share a report, everyone sees the schema
  • PDF or images - for docs, wikis, Confluence, README files
  • Comparison reports — show what changed between your model and the live database

Read more

Your Diagram Drifted from the Database? Fix It.

You changed the database directly. Or someone else did. Now your ER diagram doesn't match. Luna Modeler compares your model with the live MySQL database and shows every difference.

Then you pick: update the model, or generate an ALTER script to fix the database. Either way, you're back in sync.

Read more about updating MySQL projects
See how to generate sync SQL scripts

Synchronization form in Luna Modeler listing differences between an ER diagram project and a live database, with renamed and new columns
Compare an ER diagram with the live database
MySQL ER Diagram Maker - FAQ
What’s the fastest way to create a MySQL ER diagram?

Use a tool that knows MySQL, not just a drawing app. Luna Modeler understands tables, foreign keys, indexes, triggers. You design visually and it tracks dependencies for you. Then it generates real MySQL SQL scripts.

Can I generate SQL scripts for MySQL from Luna Modeler ER diagrams?

Yes. One click and you get the full CREATE script - tables, keys, indexes, everything. You can also write custom templates to generate scripts, forms or seed data.

Can I reverse engineer a MySQL database into a diagram?

Yes. Connect to any MySQL server - local, remote, or cloud. Luna Modeler reads the schema and builds the diagram automatically. Great for understanding projects you inherited or databases without documentation.

Is this an online ER diagram maker or a desktop app?

Desktop. It runs on Windows, macOS, and Linux. Unlike online ER diagram makers, it needs no account and no data leaves your machine. Your projects and database connections stay local. Nothing gets uploaded anywhere.

Is Luna Modeler a free ER diagram maker for MySQL?

It comes with a free 14-day trial that needs no credit card and no account. After that, it is a one-time license from $99 USD - no subscription.

How is this ER diagram maker different from MySQL Workbench?

MySQL Workbench is a free tool from Oracle that combines a SQL client with EER modeling for MySQL only. Luna Modeler focuses on modeling and supports, in one tool, MySQL, MariaDB, PostgreSQL, SQL Server, Oracle and SQLite, and it adds logical data models, sub-diagrams and interactive HTML reports.

Can I sync my ER diagram with a live MySQL database?

Both ways. Someone changed the database directly? Update your model to match. Changed the model and need to push it? Generate an ALTER script with just the differences. Works both directions for MySQL.

Can I see what changed between my diagram and the database?

Yes. Luna Modeler compares your model with the live database and lists every difference - added columns, changed types, missing indexes. You can export the comparison as an HTML report to share with your team.

Is Luna Modeler made by MySQL or Oracle?

No. Luna Modeler is developed by Ideamerit s.r.o. (Datensen.com), an independent company that is not affiliated with Oracle Corporation, the owner of MySQL. MySQL is a registered trademark of Oracle Corporation and/or its affiliates. See third-party trademarks.