Free · No sign-up · Nothing installed

MySQL to ER Diagram

Paste CREATE TABLE statements or raw mysqldump -d output — backticks, AUTO_INCREMENT and ENGINE clauses handled.

SQL input — CREATE TABLE · DDL · dumpmysql
mysqlSample: · ·
Diagram—

Your diagram renders here.

Parser coverage

What we parse in mysql

  • AUTO_INCREMENT — detected and folded into the PK column
  • Backtick identifiers — stripped for display, kept unambiguous
  • ENGINE / CHARSET clauses — dropped as noise
  • InnoDB FKs — inline FOREIGN KEY … REFERENCES and ALTER TABLE forms both parsed
From your database

Get just the schema

mysqldump -d --no-tablespaces dbname > schema.sql

-d means structure only. INSERT rows and session noise are stripped automatically.

FAQ

Questions, answered

How do I generate an ER diagram from a MySQL database?

Run mysqldump -d dbname to export structure only, then paste the output above.

Does it handle backticks and ENGINE= clauses?

Yes — dialect noise is stripped so the diagram shows tables, types and keys only.

Are enum columns supported?

Yes, enum('draft','published') renders verbatim in the column's type slot.

More converters

Also available