下载此文档

mysql数据库备份与恢复.doc


文档分类:IT计算机 | 页数:约6页 举报非法文档有奖
1/6
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/6 下载此文档
文档列表 文档介绍
my sql数据库备份与恢复
This is useful if you only want to get an export of the structure of a table!
-opt
The same thing 一 qudatabase | mysql 一 host = remote host - C database
Since mysqldump is exporting full SQL statements, it's easy to import data with mysql client:
Shell > mysqladmin create target dbname
Shell > mysql target dbname < backup - file, sql
Based on previous article methods, you can implement automatic backups by adding batch commands. It is only because the name of the backup file in the batch command is special for the name of the backup file, so special collation.
Copy the date folder backup
Imaginary environment:
MySQL installation location: C: \ MySQL
BBS database name: BBS
Database backup destination: C: \ dbbak \
Create a new dbbak. Bat, and write the following code
*1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *»L* *»L* xlx ✓r* xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx ✓!> xTs
Code Start *************************
* * * *
Net stop mysql
Xcopy c: \ mysql \ data \ BBS \ *. c: \ db bak \ BBS \ % date:
~ 0 % \ / S/I
Net start mysql
*»L* *»L* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *1* *»L* *»L* xlx ✓!> ✓r* xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx xlx ✓!> xTs
Code End ******

mysql数据库备份与恢复 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数6
  • 收藏数0 收藏
  • 顶次数0
  • 上传人小健
  • 文件大小84 KB
  • 时间2022-05-20