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?