Simple MySQL Export Function

Simple MySQL Export Function Created by NorthernOptic. This templates have specific characteristics, namely: A simple PHP function to get the contents of a MySQL database (uses MySQLi) as SQL (which can be saved as a .SQL file).This is a simple PHP function that will return the contents of a MySQL database, complete with structure and content of all tables. You can implement this function however you .

You can use this Simple MySQL Export Function on Php scripts category for backup, contents, database, export, function, mysql, mysqldump, mysqli, sql file and another uses.

Simple MySQL Export Function
© Copyright by NorthernOptic

Features:

  • None: None
  • None: None
  • Php 4.x, php 5.x, php 5.0 5.2, php 5.3, php 5.4, php 5.5, mysql 4.x, mysql 5.x: PHP 4.x, PHP 5.x, PHP 5.0 – 5.2, PHP 5.3, PHP 5.4, PHP 5.5, MySQL 4.x, MySQL 5.x
  • Ie6, ie7, ie8, ie9, ie10, firefox, safari, opera, chrome: IE6, IE7, IE8, IE9, IE10, Firefox, Safari, Opera, Chrome
  • Html, php: HTML, PHP
  • No: No

A simple PHP function to get the contents of a MySQL database (uses MySQLi) as SQL (which can be saved as a .SQL file).
This is a simple PHP function that will return the contents of a MySQL database, complete with structure and content of all tables. You can implement this function however you please; whether to save the output as a file, to copy one database to another or to do something different (see examples for programmed examples). This function can be run in just 2 lines of code, one to include the function and one to run it. This does not require mysqldump and does not require administrator or sudo access. The output provided can be used to recreate and restore the entire database, from the structure to the content of every single individual table.

This script comes with documentation that includes coded examples on how this function can be used (see the demo for more info), the code for the function is fully annotated.