-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.php
63 lines (53 loc) · 1.18 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>DbManager</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
body{
font-size: 12px;
font-family: '微软雅黑';
color: #666;
}
.dbDebug{
}
.dbDebug .err{
color: #f00;
margin: 0 5px 0 0;
}
.dbDebug .ok{
color: #06f;
margin: 0 5px 0 0;
}
.dbDebug b{
color: #06f;
font-weight: normal;
}
.dbDebug .imp{
color: #f06;
}
</style>
</head>
<body>
<?php
/**
* Created by yanue.
* User: yansueh
* Date: 12-10-27
* Time: 上午11:24
* To change this template use File | Settings | File Templates.
*/
require 'DbManage.class.php';
//------1. 数据库备份(导出)------------------------------------------------------------
//分别是主机,用户名,密码,数据库名,数据库编码
$db = new DBManage ( 'localhost', 'root', '', 'eda', 'utf8' );
// 参数:备份哪个表(可选),备份目录(可选,默认为backup),分卷大小(可选,默认2048,即2M)
//$db->backup ('','','');
$db->restore ( './backup/20121027194215_all_v1.sql');
?>
</body>
</html>