数据备份很不错,就是恢复的时候还不够完善。自己根据其思路,改善了一下,真是很不错的一个类。如果要采用,有几个地方需要注意一下:一些变量的定义过于随意,有一些变量没有定义就引用,出错。对于一些复杂的字段内容,备份悔出现错误。需要更正。
IAM backup is package made of two classes. One performs the backup of the selected MySQL database, and the second restores the database. Both classes support gzip-compressed files for improved performance. When performing the backup, the user is prompted to download the backup file, straight from the browser. Alternatively, the backup can be stored on the local server at a predefined location. Restoring the database (or copying it to another server) is just as easy.