Skip to content
MysqlExport
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backup
.gitignore
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Aug 29, 2017
CONTRIBUTING.md
Export.php
LICENSE Create LICENSE Aug 29, 2017
README.md
test.php MysqlExport created. Aug 18, 2017

README.md

MysqlExport

Description: Export the databases with php.

Why I created this class?

I have a vps and I tired of manual backup. I decided to backup the databases automatically with cronjob then I created this class.

If you see an error or optimization please don't hesitate.

TODO

Class isn't suitable for tables which has foreign keys. I'll update the class.

Test Usage

<?php
include 'Export.php';
$export = new MysqlExport\Export('backup', 'localhost', 'root', 'dev1');
$export->getDatabases();
$export->export();

License

mysqlexport is an open source project by Erhan Kılıç that is licensed under MIT.

Contribution

Contribution are always welcome and recommended! Here is how:

  • Fork the repository (here is the guide).
  • Clone to your machine git clone https://github.com/YOUR_USERNAME/mysqlexport.git
  • Make your changes
  • Create a pull request
You can’t perform that action at this time.