Create a database
New Database at the top of the sidebar, or HomeStartNew database.
Create, change, search and look after databases and their tables.
New Database at the top of the sidebar, or HomeStartNew database.
DatabaseTablesCreate Table; TableStructure to change columns, indexes and foreign keys.
TableData: search, sort, add, edit and delete rows. A row you save or add shows green for a moment, so you see which one changed.
TableDataTest data (or OperationsFill with test data): choose how many rows; each column gets a generator guessed from its name and type (names, emails, prices, dates, list values, existing rows of linked tables …) that you can change, with a preview of the exact rows. Earlier fills can be removed again from the same page. Several tables at once: DatabaseOperationsFill with test data (linked tables are filled first, Small / Medium / Large sizes, Remove all).
Drag a row by its grip on the left. The row moves with you, the list scrolls at its edge, and Escape puts it back.
This works for columns in the Guided view, SQL Builder, Database Wizard and Visual Designer, for sort columns, and for the parameters of a procedure or function. The arrows still move a row one step.
TableStructure too: there the move changes the real table, so it asks first; the data and the column's settings stay the same, but the server rebuilds the table, and SELECT * and INSERT without column names use the new order.
DatabaseSearch looks through every table (and names / SQL of objects).
TableDependencies: foreign keys, views, triggers, routines and what happens if you drop or rename it. TableViews lists just the views that read it.
DatabaseOverview: the counters open their tabs; Needs attention lists tables without a primary key, MyISAM tables, columns that look like links without a foreign key, broken views / routines / triggers / events, disabled events, tables with another collation and empty tables — each with a button to the page that fixes it. Below: quick actions, the largest and recently changed tables, and lists where every name opens its object (hover a table for Data, Structure, SQL Builder, Export). Sections fold and stay folded.
DatabaseOperationsCheck objects: everything that fails (missing tables or columns, deleted definer) or has a name SQL Wizard can’t open, with a fix for each.
TableSuggestions: missing foreign keys and indexes, keys, engine and character set — checked with the data.
DatabasePerformance checks every table at once in two columns — on the left the tables (sorted by importance, size or name), each with its findings and a bar of its data, indexes and free room; on the right a report of the database once the check is done (what was found by importance, the space to save, its numbers, the tables with most to do, what was checked; Report brings it back), then the table you pick — it is never switched for you, also after Apply: every change of it in one picture, Now → After (a new lookup or side table drawn under After), numbered as the findings under it, ‹ › or the keys ← → (Alt+↑ ↓) for the previous and next table, each with why and its buttons (several column changes of a table are one finding and one ALTER TABLE). Slow queries takes the place of the findings, the tables stay.
Hide good (on at first) leaves the tables with nothing to improve out of the list; when every table is good, the right side says so, with the database's numbers (tables, rows, columns, indexes, foreign keys, size, engine) and what was checked — a good table shows the same for itself. It checks the checks of TableSuggestions (foreign keys, missing, duplicate and unused indexes, keys, MyISAM, the character set, AUTO_INCREMENT room, money in FLOAT), and the columns against their real data — CHAR wider than its values, BIGINT or INT bigger than needed, TEXT with short values, a long VARCHAR in an index, NULL allowed but never used (tables up to 2,000,000 rows; columns in keys and links are left alone).
The map shows every table in the colour of its most important finding (red important, amber recommended, cyan worth a look, green nothing found) — click one to see only its findings. Each finding has a picture of the change, now → after: the column with its old and new type and a bar of how much the data uses, the index added or dropped, the link between two tables, MyISAMInnoDB; and the space it would save.
Apply shows the picture again and runs the SQL (under “The SQL”) with your own MySQL login, then checks the table again; Dismiss hides a finding here and in TableSuggestions. Space shows the biggest tables as bars of data, indexes and free room left by deleted rows; a table with a lot of free room (from 4 MB and a fifth of it) gets a finding to give it back with OPTIMIZE TABLE.
Tick several findings (or “all shown”) and Apply selected: one preview of every change, numbered in the order they run — engines first, then keys and columns, indexes, links, OPTIMIZE last; if one fails, the rest is not run. Structure: a text column with few different values repeated in many rows (a city, a status) can move to a table of its own — the picture shows the values going to it and the column becoming a link ({column}_id, with a foreign key); wide TEXT, BLOB or JSON columns (hundreds of bytes in a row) can move to a side table {table}_details with the same key, so the rows of the table get small.
Both move the data and drop the old column — programs that use it must change, as each card says. Slow queries lists the statements that took the most time on the database since the server started (from performance_schema, when the server keeps it and your login may read it): how long a run takes, how often it ran, the rows one run reads against the rows it returns, how often no index was used, and MySQL's plan for an example in words (reads the whole table, goes straight to the rows …) — with the index that would help, to apply there or to find among the findings.
DatabaseCompare: this database with another one on the same server, on another server of your organization (read with your own login there), or a SQL script (open a .sql file, drop it on the card, or paste it). It shows, table by table, what is only on one side and what differs — columns with their old and new definition, indexes, relations, views, engine and comment.
Indexes and relations count as the same when they do the same, whatever they are called, and spelling that differs between MySQL and MariaDB (int(11), current_timestamp()) doesn’t count. Pick which side changes, tick what to change — what deletes (drop table, column, index, relation) is red and starts unticked; “Without deleting”, “All” and “None” tick at once — and watch the SQL: Apply runs it statement by statement and stops at the first error, then compares again.
A database on another server can’t be changed from here: Copy SQL or Download .sql, or open that server and compare from there. Ignore collations leaves them out (ticked for another server; a script is always compared without them).
Rows, column order, triggers, routines and events are not compared.
Space inside the table that is not in use: new rows fill it first. No limit means the table has no spare space set aside and no fixed size: it simply grows as rows are added, until the disk or your hosting quota is full.
MyISAM tables can't have foreign keys. TableSuggestions or DatabaseSettings converts them to InnoDB.
DatabaseSettingsRead only. While it is on nobody can change data or structure (the sidebar shows a lock icon).
On some servers — shared hosting with a panel such as cPanel — dropping databases is turned off: the panel keeps its own list of databases, and one dropped from SQL Wizard would stay there. Delete or rename the database in your hosting panel instead.
Names like "jobs limit 10" (made outside SQL Wizard, e.g. with plain SQL) can’t be opened on SQL Wizard’s object pages. DatabaseOperationsCheck objects lists them and renames them to a safe name (jobs_limit_10) — one by one or all at once.
DatabaseOperationsCheck objects lists views that fail, triggers using dropped columns, routines and events that use missing tables, objects whose definer account was deleted, names with spaces SQL Wizard can't open, and events that don't run. Each has a fix — rename, make me the definer, open, drop — and shows its SQL before it runs.
No: they are rules checked against your tables and data on your own server; nothing is sent anywhere.
In SQL Wizard, Report a problem reaches us directly — or write to us.