{"id":13617446,"url":"https://github.com/dg/MySQL-dump","last_synced_at":"2025-04-14T06:33:50.809Z","repository":{"id":933153,"uuid":"704852","full_name":"dg/MySQL-dump","owner":"dg","description":"MySQL Dump Utility","archived":false,"fork":false,"pushed_at":"2021-04-14T08:13:52.000Z","size":24,"stargazers_count":200,"open_issues_count":2,"forks_count":50,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-05-18T05:41:12.430Z","etag":null,"topics":["backup","mysql-dump-utility","php"],"latest_commit_sha":null,"homepage":"https://nette.org","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"dg","custom":"https://nette.org/make-donation?to=mysql-dump"}},"created_at":"2010-06-05T14:38:50.000Z","updated_at":"2024-05-05T07:08:38.000Z","dependencies_parsed_at":"2022-08-16T11:30:58.517Z","dependency_job_id":null,"html_url":"https://github.com/dg/MySQL-dump","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2FMySQL-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2FMySQL-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2FMySQL-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dg%2FMySQL-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dg","download_url":"https://codeload.github.com/dg/MySQL-dump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223621782,"owners_count":17174752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","mysql-dump-utility","php"],"created_at":"2024-08-01T20:01:41.839Z","updated_at":"2024-11-08T02:30:26.536Z","avatar_url":"https://github.com/dg.png","language":"PHP","funding_links":["https://github.com/sponsors/dg","https://nette.org/make-donation?to=mysql-dump"],"categories":["PHP"],"sub_categories":[],"readme":"MySQL Dump Utility\n==================\n\nThis is a backup utility used to dump a database for backup or transfer to another MySQL server.\nThe dump typically contains SQL statements to create the table, populate it, or both.\n\nIt requires PHP 5.6 (release 1.5) or PHP 7.1 or later.\n\nUsage\n-----\n\nCreate [MySQLi](http://www.php.net/manual/en/mysqli.construct.php) object and pass it to the MySQLDump:\n\n```php\n$db = new mysqli('localhost', 'root', 'password', 'database');\n$dump = new MySQLDump($db);\n```\n\nYou can optionally specify how each table or view should be exported:\n\n```php\n$dump-\u003etables['search_cache'] = MySQLDump::DROP | MySQLDump::CREATE;\n$dump-\u003etables['log'] = MySQLDump::NONE;\n```\n\nThen simply call `save()` or `write()`:\n\n```php\n$dump-\u003esave('export.sql.gz');\n```\n\nImport dump from file to database this way:\n\n```php\n$import = new MySQLImport($db);\n$import-\u003eload('dump.sql.gz');\n```\n\nIf you like it, **[please make a donation now](https://nette.org/make-donation?to=mysql-dump)**. Thank you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdg%2FMySQL-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdg%2FMySQL-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdg%2FMySQL-dump/lists"}