Dataset
MySQL application database datasets for AI training
A MySQL dataset is a dump of chosen databases from a business's MySQL server: the InnoDB and older MyISAM tables behind its website, store or internal application, holding accounts, orders, content, sessions and logs, with their table definitions and the views, triggers, stored procedures and events defined on them. SourceX sources it to a buyer's spec from established businesses that run MySQL. Each dataset is de-identified and licensed for an agreed permitted use. Confirm that password hashes, tokens and payment fields were removed.
Dataset manifest
Sourced to your spec- What it is
- Chosen databases from one MySQL server: table definitions, rows, views, triggers, stored procedures, functions and events
- Typical systems
- MySQL Community or Enterprise Edition, self-managed or cloud-hosted, with InnoDB and legacy MyISAM tables, and binary log archives where the business kept them
- Typical history
- Current rows only; changes survive only in application audit tables or archived binary logs. Ask for the oldest row per table
- Modality
- Relational tables with typed columns, free-text and JSON columns, and SQL source for routines and triggers
- Delivery formats
- Agreed per order; mysqldump SQL, or per-table Parquet or CSV with SHOW CREATE TABLE output and each column's character set and collation
- Preparation
- Personal data pseudonymized so keys still join; password hashes, tokens and payment fields removed; text columns screened; any encoding repair recorded
- Licensing
- Scoped per database, table and date range; permitted use agreed per license; Oracle's terms for the edition in use, or a hosting provider's, checked by owner and buyer
- Availability
- Sourced to your spec; tables, history and engines depend on the business's application, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| table_schema | string | The database the table belongs to, as TABLE_SCHEMA in information_schema.TABLES. |
| table_name | string | The table's name in the letter case it has on the source server. |
| engine | enum | The storage engine from information_schema.TABLES, usually InnoDB or MyISAM, which decides whether foreign keys applied. |
| create_table | string | The SHOW CREATE TABLE statement: columns, keys, engine, AUTO_INCREMENT counter, default character set and collation. |
| columns | array | Rows of information_schema.COLUMNS: COLUMN_TYPE with unsigned and ENUM values, nullability, default, character set and collation. |
| declared_foreign_keys | array | Constraints from information_schema.REFERENTIAL_CONSTRAINTS and KEY_COLUMN_USAGE, with their ON DELETE and ON UPDATE rules. |
| implied_references | array | Columns that point at another table by convention only, such as customer_id, with the match rate measured on the rows. |
| primary_key | object | The row's primary key value, usually an AUTO_INCREMENT integer, kept so child rows still join. |
| row | object | One row of the table with values in their column types, keeping zero dates and NULLs distinct. |
| encoding_note | object | For a text column, the declared character set, what the stored bytes were found to be, and any repair. |
| routines | array | Stored procedures and functions from information_schema.ROUTINES, with body and SQL mode, and the DEFINER account removed. |
| triggers_views_events | array | Definitions from information_schema.TRIGGERS, VIEWS and EVENTS: timing, event, statement, view query and event schedule. |
| server_settings | object | Server version, sql_mode, time zone and lower_case_table_names at the time of the dump. |
Field names from the table above; values are masked placeholders.
Example record
{
"table_schema": "storefront",
"table_name": "orders",
"engine": "MyISAM",
"primary_key": {
"id": 184220
},
"row": {
"id": 184220,
"customer_id": 30977,
"status": "shipped",
"total": "64.90",
"created_at": "2014-03-08 17:42:10",
"cancelled_at": "0000-00-00 00:00:00",
"notes": "Leave with the front desk. Spoke to [NAME]."
},
"columns": [
{
"name": "status",
"column_type": "enum('new','paid','shipped','cancelled')"
},
{
"name": "cancelled_at",
"column_type": "datetime",
"nullable": false
},
{
"name": "notes",
"column_type": "text",
"character_set": "latin1"
}
],
"declared_foreign_keys": [],
"implied_references": [
{
"column": "customer_id",
"target": "storefront.customers.id",
"basis": "owner-stated"
}
],
"encoding_note": {
"column": "notes",
"declared": "latin1",
"bytes_found": "utf8",
"repaired": true
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train text-to-SQL on the MySQL dialect
Schemas with backtick-quoted names, ENUM columns, unsigned integers and zero dates give a model the dialect and the data it will meet.
Infer undeclared relationships
MyISAM-era tables with no foreign keys are the task: find the joins from names and values, then check them against the owner's map.
Build database migration agents
A dump with latin1 columns, three-byte utf8 and zero dates is a real conversion job to utf8mb4 or to another database.
Read stored logic
Triggers, procedures and events show where business rules live outside the application.
Evaluate data agents
Questions the owner answers from the tables, with known results, test whether an agent tells NULL from a zero date.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Engine stated per table
Knowing which tables are InnoDB and which MyISAM tells you where a foreign key could have been enforced.
Encoding audited
Each text column's declared character set comes with a check of what the stored bytes really are.
Declared and implied keys separated
Constraints from information_schema are listed apart from joins that rest on column names.
Server settings recorded
The sql_mode, time zone and version explain zero dates, cut strings and TIMESTAMP values.
Routines and events present
Stored logic is dumped only when asked for, so its presence shows a deliberate export.
Consistent snapshot
A dump taken in one transaction, or with tables locked, means parent and child rows agree.
Process
MySQL dataset
The storage engine decides what the schema can say
In MySQL every table has a storage engine, and the engine sets the rules. InnoDB tables have transactions and enforce foreign keys. MyISAM, the default engine for many years, has neither. A FOREIGN KEY clause written against a MyISAM table is parsed and thrown away without an error, so the schema says nothing about what points where. Converting such a table to InnoDB later does not bring the constraints back, and adding them then fails while orphaned rows remain, unless foreign key checks are switched off. In a long-lived MySQL database, expect most relationships to exist only in application code and in matching column names: orders.customer_id and customers.id, key columns declared NOT NULL DEFAULT 0 where 0 means no parent, and key-value meta tables that hold attributes as rows.
The same history shows in the rows. MyISAM has no transactions, so a write across several tables that was interrupted left an order header without its lines. Servers that ran without strict SQL mode cut over-long strings to the column length, stored an empty string for an ENUM value not in the list, and turned unparseable numbers into zero. Default collations compare without regard to case, so Smith and smith were one key on the source server and are two on a case-sensitive target.
An UPDATE replaces the row and MySQL keeps no earlier version. An updated_at column is often a TIMESTAMP the server refreshes on any change to the row, so it marks the last touch, bulk maintenance included. The only server-side change record is the binary log, written for replication and recovery. In row format it can hold the before and after values of each changed row, in statement format only the SQL text. It may never have been switched on, and where it was, its files are normally purged after a configured retention period, so change history exists only if the business archived its binary logs or kept audit tables of its own.
What mysqldump returns, and the traps in old text and dates
mysqldump writes a SQL script: CREATE TABLE statements and INSERT statements for the rows as they are now. Triggers come with their tables by default. Stored procedures, functions and scheduled events are written only when the options for them are given, so their absence from a dump proves nothing. Views and routines carry a DEFINER clause naming an internal account. The single-transaction option gives a consistent snapshot of InnoDB tables only, and MyISAM tables written during such a dump can disagree with them. The script is in MySQL's dialect, with backtick-quoted names and engine clauses, and does not load into another database unchanged.
Old text is the first trap. For years the default character set was latin1, and applications sent UTF-8 bytes over a connection declared as latin1. MySQL stored the bytes as given and the application read them back the same way, so nothing looked wrong. An export over a correctly declared connection converts each byte again, and an accented letter arrives as two wrong characters. Some rows in the same column may be true latin1, so a repair has to be tested per column and sometimes per row. The second trap is the character set MySQL named utf8, which stores at most three bytes per character and cannot hold emoji. On a non-strict server such text could be cut off at the first such character, or have it replaced with a question mark.
Dates are the third. Under older SQL modes MySQL allowed 0000-00-00 as a date, and old schemas use it for not set in columns declared NOT NULL. Other databases refuse it, and turning it into NULL erases the difference from a real NULL, so the choice should be recorded. TIMESTAMP values are stored in UTC and shown in the session's time zone, while DATETIME values have no zone at all. To test a sample, list the engine of every table, measure how many child values find a parent on each implied join, scan text for the paired characters that mark double encoding, and count zero dates per column. Ask for row counts from COUNT(*), because information_schema reports estimates for InnoDB tables.
What to check before licensing
- Have the data owner and your counsel read Oracle's terms for the MySQL edition in use, and those of any managed database provider, on exported data and API use.
- Ask whose personal data each table holds, including end users of the business's own customers, and confirm its customer contracts allow those records to be licensed.
- Confirm password hashes, session tokens, API keys and payment fields are removed, and search settings, meta and log tables for them as well as the user table.
- Ask for the engine of every table and the declared foreign keys, then have the owner mark which other joins the application relies on.
- Ask which character sets connections and columns used over the database's life, and check text for double encoding and for strings cut off, or holding a question mark, where an emoji was.
- Ask how zero dates were handled and whether TIMESTAMP and DATETIME columns were exported in UTC or in the server's time zone.
- Ask for the exact dump command and sql_mode, and confirm routines and events were requested and MyISAM tables were not written during the dump.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Does a MySQL dump include the history of changes?
No, mysqldump writes the rows as they are at the moment of the dump. MySQL's only server-side record of changes is the binary log, which may not have been enabled and is normally purged after a configured retention period. History is available only if the business archived its binary logs or kept audit tables in the application. Ask which exists and from what date.
How do we find relationships when no foreign keys are declared?
Start from the owner's knowledge and verify it on the rows. Ask for the application's model definitions or a join map, then measure for each proposed join how many child values find a parent. Names such as customer_id are hints, not proof, and a 0 in a NOT NULL key column usually means no parent, not a lost row.
Why does text in a sample show garbled accented characters?
Usually because UTF-8 bytes were stored in a column declared latin1 and the export converted them a second time. The data is intact on the server and can be exported correctly or repaired afterward. Ask for a per-column encoding audit, and check whether some rows in the same column are true latin1, which a blanket repair damages.
Is data from MariaDB or a MySQL-compatible cloud service the same?
Close, with differences worth stating. MariaDB began as a fork of MySQL and its dumps look alike, but the two have diverged in JSON storage, system tables and some SQL features. MySQL-compatible managed services accept mysqldump while controlling settings such as binary log retention. Ask which server and version produced the dump.
Can we license the schema and stored logic without the rows?
Technically yes, and whether a business offers that scope is settled in the license. mysqldump can omit row data and write table definitions, views, triggers, routines and events alone. That scope suits work on schemas and SQL code and avoids most personal data, though comments and DEFINER account names still need review. Encoding damage, zero dates and orphaned keys cannot be studied without rows.
Is SourceX affiliated with Oracle?
MySQL is named to identify the system the records come from. That does not imply a partnership with or endorsement by Oracle. The records belong to the business that runs MySQL, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Relational business database exports
Populated relational databases from business applications, with schema, keys, constraints, code tables and a data dictionary
- Database schemas, migrations and stored procedures
Production schema definitions with the migration chain, procedural code and the review and rollback record
- SQL query logs paired with the business question
Analyst-run warehouse queries in session order, each with schema, run outcome and the paired business question
- PostgreSQL application databases
A pg_dump of chosen schemas: table rows, declared constraints, views, functions, triggers and the application's own audit or history tables
- SQL Server and Azure SQL databases
Chosen databases from SQL Server or Azure SQL: table rows, object definitions in T-SQL, and row history where it was enabled
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.