PHP implements database backup (high scores are delivered to normal users)

Source: Internet
Author: User
PHP implements database backup (high scores for good users) PHP database backup storage database

I want to use PHP to back up the database. the backup can be SQL statements or txt files.

Currently, table structures and data backup can be implemented. However, for views, stored procedures, and functions, program backup cannot be implemented. After checking on the Internet, the table structure is basically ended. If anyone has implemented full database backup, please provide guidance. of course, it is best to provide reference code. thank you.

This is my log in cnblogs. it mainly implements table structure backup at http://www.cnblogs.com/martin1009/p/3145755.html, but I want to implement all the backups (including tables, views, stored procedures, functions, triggers, etc ).


Reply to discussion (solution)

Http://kerry.blog.51cto.com/172631/177570/
Are you sure it works,

Show create database read statement of creating DATABASE
Show create schema read statement for creating a database
Show create table read statements for creating a TABLE
Show create view read statements for creating a VIEW
Show create procedure read statements used to CREATE a stored PROCEDURE
Show create function read the statement for creating a FUNCTION

A lot of them are not included. Read the manual by yourself.

What about this,
Http://my.oschina.net/laodiaoya/blog/90596

See export in phpMyAdmin
These functions have long been implemented
Download the latest 4.0.4 from the official website

How many management tools are not available in the group?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.