Description
MySQL Dump Utility is a PHP library that exports a MySQL database to a SQL file, so you can back it up or move it to another MySQL server. You create a MySQLi connection, pass it to the MySQLDump class, and call save() or write() to produce the dump. For each table or view you can choose what to export with the flags NONE, DROP, CREATE, DATA, TRIGGERS, ROUTINES or ALL. The ROUTINES option controls stored functions, stored procedures and scheduled events at database level. The library strips the DEFINER clause from exported routines and triggers, so the dump imports cleanly under any user. The README also shows how to import a dump file from disk back into a database. It needs PHP 8.2 or later. Because it is a code library rather than a standalone program, it suits PHP developers who want backup or export logic inside their own scripts or tools. The author asks for donations in the README.…
Highlights
- Exports tables, views, triggers and routines
- Per-table export flags
- Removes DEFINER clauses from routines
- Save or write dumps from a MySQLi connection
- Requires PHP 8.2 or later
Ratings & Reviews
No ratings yet
Be the first to rate MySQL-dump.
People also visit

wenb1n-dev/mysqlmcpserverpro
MySQL CRUD plus database anomaly analysis and role-based permission control
MySQL-dump FAQ
What is MySQL Dump Utility?
A PHP library that writes a SQL dump of a MySQL database, for backup or transfer to another server.
What do I need to run it?
PHP 8.2 or later and a MySQLi connection to the database you want to dump.
Can I choose what gets exported?
Yes. Each table or view can take the flags NONE, DROP, CREATE, DATA, TRIGGERS, ROUTINES or ALL.
Can it import a dump?
The README shows how to import a dump file from disk back into a database.
Is it free?
The code is public on GitHub. The README asks for donations but does not charge for the library.
What are the best MySQL-dump alternatives?
Popular alternatives to MySQL-dump include Onedump, Phpbu and phpMyAdmin. See all MySQL-dump alternatives









