WordPress: Backing Up Your Database:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: '''It is strongly recommended that you backup your database at regular intervals and before an upgrade.''' [[WordPress:Restoring Your Database From Backup|Restoring your database from ba...)
 
无编辑摘要
 
(未显示3个用户的4个中间版本)
第1行: 第1行:
'''It is strongly recommended that you backup your database at regular intervals and before an upgrade.'''
<span style="border:1px solid #000; text-align:center; float:right; padding:6px;"><strong>导航:</strong> [[WordPress:WordPress文档|上一级]] | [[WordPress]] | {{Template:WordPress导航}}</span>
<div style="clear:both;"></div>
'''强烈建议定时备份,每次更新前也做一次备份。.'''


[[WordPress:Restoring Your Database From Backup|Restoring your database from backup]] is then possible if something goes wrong.
[[WordPress:Restoring Your Database From Backup|从你的备份中恢复数据库]]可以在你遇到问题时使用。


== Using phpMyAdmin ==
== 使用 phpMyAdmin ==


[[WordPress:phpMyAdmin]] is the name of the program used to manipulate your database.  
[[WordPress:phpMyAdmin| phpMyAdmin]]是一个用来操作你的数据库的程序.  


Information below has been tried and tested using phpMyAdmin versions 2.5.3, 2.5.7-pl1, and 2.6.1-pl3 running on Unix.
下边的信息已经通过使用phpMyAdmin versions 2.5.3, 2.5.7-pl1,和2.6.1-pl3运行在Unix系统上的测试。


=== Backup Process with phpMyAdmin ===
=== 使用phpMyAdmin的备份过程 ===
<ol>[[WordPress:Image:podz_backup_1.jpg|thumb|Image#1]]
<ol>[[WordPress:Image:podz_backup_1.jpg|thumb|Image#1]]
<li>Log into phpMyAdmin on your server</li>
<li>在你的服务器上登陆phpMyAdmin </li>
[[WordPress:Image:podz_backup_2.jpg|thumb|Image#2]]
[[WordPress:Image:podz_backup_2.jpg|thumb|Image#2]]


<li>From the main login screen, select 'Databases' (Image#1)</li>
 
<li>从主登陆界面选择 'Databases' (Image#1)</li>
[[WordPress:Image:podz_backup_3.jpg|thumb|Image#3]]
[[WordPress:Image:podz_backup_3.jpg|thumb|Image#3]]


<li>Now click the name of your database - or your WordPress database if you have several databases. (Image#2)</li>
<li>现在点你的数据库的名字 – 或者你的 WordPress数据库,如果你有好几个数据库的话. (Image#2)</li>
[[WordPress:Image:podz_backup_4.jpg|thumb|Image#4]]
[[WordPress:Image:podz_backup_4.jpg|thumb|Image#4]]


<li>The next screen will show you all the tables inside your WordPress database.<br />
<li>下一个界面将显示你的 WordPress 数据库中所有的表格.<br />
Ignore those, and click the 'Export' tab on the top set of tabs. (Image#3)</li>
忽略这些,在顶部标签中点击'Export' 标签. (Image#3)</li>


<li>Look at the left box at the top of the Export section. All the tables in the database you selected are in that box.(Image#4)</li>
<li>查看Export部分的顶部左边框. 所有你选择的数据库中的表格都在这个方框中.(Image#4)</li>
[[WordPress:Image:podz_backup_5.jpg|thumb|Image#5]]
[[WordPress:Image:podz_backup_5.jpg|thumb|Image#5]]
<ul>
<ul>
<li>If you have other programs that use the database, then choose only those tables that correspond to your wordpress install. They will be the ones with that start with "wp_" or whatever 'table_prefix' you specified in your 'wp-config.php' file.</li>
<li>如果你有别的使用数据库的程序,那么选择那些符合 wordpress安装的表格 . 它们以 "wp_" 或者是 'table_prefix' 开头,你在你的 'wp-config.php' 文件中详细指定过的.</li>


<li>If you only have your WordPress blog installed, in the left column, click 'Select All'.</li>
<li>如果你只安装了 WordPress blog, 在左边栏中点击 'Select All'.</li>
</ul>
</ul>


<li>Ensure that the SQL button is selected too. (Image#5)</li>
<li>确保SQL 按钮被选中. (Image#5)</li>
<ul>
<ul>
<li>The SQL section</li>
<li> SQL 部分</li>


<li>Tick the following boxes: Structure, 'Add DROP TABLE', 'Add AUTO_INCREMENT' and 'Enclose table and field names with backquotes'</li></ul>
<li>勾选一下方框: Structure, 'Add DROP TABLE', 'Add AUTO_INCREMENT' 'Enclose table and field names with backquotes'</li></ul>


<li>The DATA section</li>
<li> DATA部分</li>
<ul>[[WordPress:Image:podz_backup_6.gif|thumb|Image#6]]
<ul>[[WordPress:Image:podz_backup_6.gif|thumb|Image#6]]


<li>Leave the boxes inside this section unticked, but make sure to keep the checkbox next to the "DATA" heading checked.</li>
<li>这部分之内的方框不要勾选,但是要确定在保持"DATA"旁边的复选框是选中状态.</li>
</ul>
</ul>


<li>Tick the 'Save as file' option, and leave the template name alone.<br />
<li>勾选 'Save as file' 操作, 留下一个模板名字.<br />
For now, select 'None' for compression.</li>
现在压缩选中 'None'.</li>


<li>Now click 'Go' and you should be prompted for a file to download. Save the file to your computer. (Image#6)<br />
<li>现在点击 'Go' ,你应该被提示说有个文件下载,保存这个文件到你的电脑上. (Image#6)<br />
Depending on the database size, this may take a few moments.</li>
根据数据库的大小,这会花去你几分钟的时间.</li>


<li>Once that download is complete, check the 'zipped' option, click 'Go', and download the next file.<br />
<li>下载完成后,查看'zipped' 操作, 点击 'Go', 下载另外一个文件.<br />
If you wanted, you could download a backup in each of the compression formats. Your choice.</li>
如果你想的话,你可以下载每个文件的压缩格式的备份。你的选择.</li>


<li>You have now backed up your database.</li>
<li>现在,你的数据库已经备份完毕.</li>




'''Remember''' - you have NOT backed up the files and folders - such as images - but all your posts and comments are now safe.</li>
'''记住''' – 你没有备份文件和文件夹 – 如图片- 但是所有你的文章和评论现在已经是安全的了.</li>
</ol>
</ol>


== Using Straight MySQL Commands ==
== 直接使用 MySQL 命令==


phpMyAdmin can not handle large databases so using straight MySQL code will help.
phpMyAdmin 不能掌控大的数据库所以用直接 MySQL 代码会有所帮助 will help.


1. Change your directory to the directory you want to dump things to:
1. 把目录改成你想储存临时数据的地方:


<pre>user@linux:~> cd files/blog</pre>
<pre>user@linux:~> cd files/blog</pre>


2. Use <code>mysqldump</code> to dump all database tables. To dump only certain tables from the database, give their names at the place shown by <code>(tablename tablename tablename)</code>, and omit the parentheses <code>( )</code> in any case. (For help, try: <code>man mysqldump</code>.):
2. 使用 <code>mysqldump</code> 来储存所有的数据库表格. 想储存某个特定的数据库表格,在通过<code>(tablename tablename tablename)</code>显示出来的地方给它们命名, 忽略<code>( )</code> 中的圆括号. (想获得帮助信息, 尝试: <code>man mysqldump</code>.):


<pre>user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver
<pre>user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver
第83行: 第86行:
</pre>
</pre>


The <code>bzip2 -c</code> after the | (pipe) means the backup is compressed on the fly, and the <code>&gt; blog.bak.sql.bz2</code> sends the <code>bzip</code> output to a file named <code>blog.bak.sql.bz2</code>. It does in one line the same thing that these two commands do:
| (pipe)之后的<code>bzip2 -c</code>语句意思是备份已经被压缩, <code>&gt; blog.bak.sql.bz2</code>发送<code>bzip</code>到一个名字叫做的文件中。 <code>blog.bak.sql.bz2</code>. 和下面两个命令做的是同样的事情:
<pre>
<pre>
mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp > blog.bak.sql
mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp > blog.bak.sql
第89行: 第92行:
</pre>
</pre>


== Using MySQL Administrator ==
MySQL Administrator is a program for performing administrative
operations, such as configuring your MySQL server, monitoring its
status and performance, starting and stopping it, managing users and
connections, performing backups, restoring backups and a number of
other administrative tasks.
You can perform most of those tasks using a command line interface
such as that provided by [http://dev.mysql.com/doc/mysql/en/mysqladmin.html '''mysqladmin'''] or
[http://dev.mysql.com/doc/mysql/en/mysql.html '''mysql'''], but MySQL Administrator is advantageous in the following respects:
*Its graphical user interface makes it more intuitive to use.
*It provides a better overview of the settings that are crucial for the performance, reliability, and security of your MySQL servers.


*It displays performance indicators graphically, thus making it easier to determine and tune server settings.
== 使用 MySQL 管理员 ==
MySQL 管理员是一个执行管理的程序。
操作, 如设置你的MySQL 服务器, 监测它的状态和表现, 开始或者是停止, 管理用户和连接,执行备份,储存备份等等一系列其他管理任务。你可以使用命令行界面执行这些任务中的大多数。如由[http://dev.mysql.com/doc/mysql/en/mysqladmin.html '''mysqladmin'''] 或者
[http://dev.mysql.com/doc/mysql/en/mysql.html '''mysql''']提供的, 但是MySQL 管理员在下面这些方面更具有优势:


*It is available for Linux, Windows and MacOS X, and allows a remote client to backup the database across platforms. As long as you have access to the MySQL databases on the remote server, you can backup your data to wherever you have write access.
*图形用户界面让它更容易使用


*There is no limit to the size of the database to be backed up as there is with phpMyAdmin.
*它提供了更好的对你的MySQL服务器的界面,可靠性和安全性至关紧要的设置总览。


MySQL Administrator is designed to work with MySQL servers versions 4.0 and above.
*它显示性能指示器是图形化的,这更容易决定和调整服务器设置。


=== Getting MySQL Admin ===
* Linux, Windows and MacOS X都可以使用, 允许远程客户端备份数据库交叉平台. 只要你进入了远程MySQL 数据库, 你就可以备份你的数据到任何具有写入权限的地方。


MySQL Admin may be downloaded from [http://dev.mysql.com/downloads/administrator/1.0.html the MySQL.Com site]. Installation binaries and documentation may also be found there.
*对备份数据库的大小没有限制,因为有phpMyAdmin.


=== Backing Up the Database ===
MySQL Administrator 是为MySQL servers 版本 4.0 及以上设计使用的。
This assumes you have already installed MySQL Admin and set it up so that you can login to the MySQL Database Server either locally or remotely. Refer to the documentation that comes with the installation package of MySQL Admin for your platform for installation instructions.


1. Open the MySQL Admin client and login as you had previously set up to do.
=== 使用MySQL 管理 ===


2. From the icon menu on the left hand side of the client window select Backup.
MySQL 管理可以从[http://dev.mysql.com/downloads/administrator/1.0.html the MySQL.Com site]下载. 安装文件也可以从这里找到.


3. If you have not already created a Backup Project, do this now by clicking on the "New Project" button at the lower part of the window and type in a name for the Backup Project where prompted.
=== 备份数据库 ===
这里假设你已经安装了MySQL Admin 并设置好,这样你就可以本地或者远程登陆MySQL Database Server. 查阅安装说明中的MySQL Admin安装包文件。


4. Select one or more databases that you want to Backup (in the MySQL Admin client these are called a "Schema" (pl. "Schemata")). Add them to the Backup Content window on the right using the right-pointing arrow button.
1. 打开MySQL Admin 客户端登陆.


5. When you have selected the Schema(ta), you can save the Backup Project. Or you may simply choose to Backup Now using the button on the lower right of the window.
2. 从程序窗口左边的图像菜单中选择Backup.


6. A dialogue will come up asking you where to put the Backup. Enter the pathname or browse to the location using the dialogue.
3. 如果你没有创建一个Backup 项目, 现在点击窗口下部的 "New Project" 按钮,为Backup Project输入一个名字.


7. Assuming all is correct (and you have write permissions in the directory to which you are writing the Backup), the backup will complete shortly.
4. 选择一个或者更多你想备份的数据库(在MySQL Admin 程序中,这些叫做 "Schema" (pl. "Schemata")). 使用指向右边的箭头把它们加入到右边的Backup Content 窗口 。


=== Restoring From a Backup ===
5. 当你选择了Schema(ta), 你可以保存备份项目. 或者你可以简单的选择右下方的Backup Now 按钮.


1. Open the MySQL Admin client and login as you had previously set up to do.
6. 一个对话框将会产生,询问你要把备份保存在什么地方。输入路径名字或者通过浏览保存。


2. From the icon menu on the left hand side of the client window select Restore.
7. 假设所有步骤都正确 (并且你在写备份的目录拥有写入权限), 备份会很快完成.


3. Click the "Open Backup File" button on the lower right of the window.
=== 从备份中恢复 ===


4. Type in or browse to the Schema(ta) backup file and select. Click "Open".
1. 打开MySQL Admin 程序登陆.


5. The Target Schema(ta) will most likely be the "Original Location", or you may choose an alternate location using the drop-down menu.
2. 从图形界面的程序窗口左手边选择 Restore.


6. Click the "Start Restore" button on the lower right of the window. The database restore will commence.
3. 点击右下方的"Open Backup File" 按钮。


== Using WordPress Database Backup Plugin ==
4. 输入或者浏览至 Schema(ta) 备份文件,选择,点击"Open".
[http://www.ilfilosofo.com/ Austin Matzko] maintains a [[WordPress:Plugins|WordPress plugin]] originally created by [http://www.skippy.net Skippy] called [http://www.ilfilosofo.com/blog/wp-db-backup WordPress Database Backup]. It was bundled with WordPress 2.0 but is no longer included with WordPress 2.1.


===Install the Plugin===
5. 目标 Schema(ta) 通常会在"Original Location", 或者你可以使用下拉菜单选择一个替代位置.
# If you do download the plugin, follow the directions in the ''wp-db-backup.txt'' file to install the plugin correctly.


=== Activate the Plugin ===
6. 点击右窗口下方 "Start Restore" 按钮。 数据库恢复开始
# Make sure the <tt>wp-content</tt> folder is [[WordPress:Changing_File_Permissions|writeable]] by your server (change its CHMOD)
# Go to your  [[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#Plugins|Plugins]] > [[WordPress:Managing_Plugins|Plugins Panel]] and activate the plug-in


===Backing up===
== 使用WordPress 数据库备份插件 ==
# Navigate to [[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#Backup|Manage]] > [[WordPress:Manage_Backup_SubPanel|Backup Panel]]
[http://www.ilfilosofo.com/ Austin Matzko] 维持了一个 [[WordPress:Plugins|WordPress 插件]] ,最初是[http://www.skippy.net Skippy]创建的,叫做 called [http://www.ilfilosofo.com/blog/wp-db-backup WordPress 数据库备份]. 它与WordPress 2.0绑定,但是现在不包括在WordPress 2.1中了。
# Select any tables, in addition to the core WordPress tables, that should be backed-up.  Select the Backup Options; the backup can be saved on the server, downloaded, or emailed.  Finally, click on the Backup button to actually perform the backup.  If you have installed the [http://www.skippy.net/blog/category/wordpress/plugins/wp-cron/ WP-Cron plugin], you can schedule daily backups.
===安装插件===
# 如果你下载了这个插件,按照''wp-db-backup.txt'' 文件中的说明正确安装插件.
=== 激活插件 ===
# 确定<tt>wp-content</tt> 文件夹是通过你的服务器 [[WordPress:Changing_File_Permissions|可写入的]] (更改 CHMOD)
# 进入[[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#Plugins|Plugins]] > [[WordPress:Managing_Plugins|Plugins Panel]] 激活插件。


=== Restoring the Data===
===备份===
The file created is a standard SQL file. If you want information about how to upload that file, look at [[WordPress:Restoring Your Database From Backup]].
# 进入[[WordPress:Administration_Panels|Administration]] > [[WordPress:Administration_Panels#Backup|Manage]] > [[WordPress:Manage_Backup_SubPanel|Backup Panel]]
# 选择任何表格, 除了核心WordPress表格, 都应该被备份.  选择备份Backup操作; 备份会被保存到服务器上,下载或者被邮寄. 最后, 点击Backup按钮来执行备份。如果你安装了[http://www.skippy.net/blog/category/wordpress/plugins/wp-cron/ WP-Cron 插件], 你可以设置每日备份.


== Using CocoaMySQL ==
=== 恢复数据===
创建的文件是标准的 SQL 文件. 如果你想知道如何上传文件,参见[[WordPress:Restoring Your Database From Backup|从备份中恢复数据]].
== 使用 CocoaMySQL ==


[http://cocoamysql.sourceforge.net CocoaMySQL] is a free MySQL client for Mac OS X.
[http://cocoamysql.sourceforge.net CocoaMySQL]是一个免费的基于Mac OS X的 MySQL 客户端.


Open your database from CocoaMySQL and choose <strong>File → Export → MySQL file…</strong>, and check these options:
从CocoaMySQL 打开你的数据库选择<strong>File → Export → MySQL file…</strong>, 查看如下操作:


* Add drop table
* Add drop table
第175行: 第171行:
[[WordPress:Image:cocoamysql_export_dialog.png]]
[[WordPress:Image:cocoamysql_export_dialog.png]]


== Resources and Backup Plugins ==
== 资源和备份插件 ==


* [[WordPress:Backup WPMU|Backup at its elementary level]]
* [[WordPress:Backup WPMU|初级备份]]
* [http://www.clearpointsystems.com/wp04/?page_id=18 How to backup and restore a WordPress database]
* [http://www.clearpointsystems.com/wp04/?page_id=18 如何备份和恢复WordPress 数据库]
* [[WordPress:Plugins/BackUpWordPress]] for automated backups.
* [[WordPress:Plugins/BackUpWordPress|插件/ BackUpWordPress]] 自动备份.
* [http://www.ilfilosofo.com/blog/wp-db-backup WordPress Database Backup Plugin]
* [http://www.ilfilosofo.com/blog/wp-db-backup WordPress 数据库备份插件]
* [http://www.quickonlinetips.com/archives/2007/06/reduce-database-backup-size-delete-akismet-blocked-spam/ Reduce Database Backup Size: Delete Akismet Spam]
* [http://www.quickonlinetips.com/archives/2007/06/reduce-database-backup-size-delete-akismet-blocked-spam/ Reduce 数据库备份大小: 删除 Akismet Spam]

2008年5月27日 (二) 10:49的最新版本

导航: 上一级 | WordPress | 首页 | WordPress中文论坛 | WordPress主机 | CMS程序 | 论坛程序 | ECShop | ShopNC | PowerEasy

强烈建议定时备份,每次更新前也做一次备份。.

从你的备份中恢复数据库可以在你遇到问题时使用。

使用 phpMyAdmin[ ]

phpMyAdmin是一个用来操作你的数据库的程序.

下边的信息已经通过使用phpMyAdmin versions 2.5.3, 2.5.7-pl1,和2.6.1-pl3运行在Unix系统上的测试。

使用phpMyAdmin的备份过程[ ]

    thumb|Image#1
  1. 在你的服务器上登陆phpMyAdmin
  2. thumb|Image#2
  3. 从主登陆界面选择 'Databases' (Image#1)
  4. thumb|Image#3
  5. 现在点你的数据库的名字 – 或者你的 WordPress数据库,如果你有好几个数据库的话. (Image#2)
  6. thumb|Image#4
  7. 下一个界面将显示你的 WordPress 数据库中所有的表格.
    忽略这些,在顶部标签中点击'Export' 标签. (Image#3)
  8. 查看Export部分的顶部左边框. 所有你选择的数据库中的表格都在这个方框中.(Image#4)
  9. thumb|Image#5
    • 如果你有别的使用数据库的程序,那么选择那些符合 wordpress安装的表格 . 它们以 "wp_" 或者是 'table_prefix' 开头,你在你的 'wp-config.php' 文件中详细指定过的.
    • 如果你只安装了 WordPress blog, 在左边栏中点击 'Select All'.
  10. 确保SQL 按钮被选中. (Image#5)
    • SQL 部分
    • 勾选一下方框: Structure, 'Add DROP TABLE', 'Add AUTO_INCREMENT' 和 'Enclose table and field names with backquotes'
  11. DATA部分
    • thumb|Image#6
    • 这部分之内的方框不要勾选,但是要确定在保持"DATA"旁边的复选框是选中状态.
  12. 勾选 'Save as file' 操作, 留下一个模板名字.
    现在压缩选中 'None'.
  13. 现在点击 'Go' ,你应该被提示说有个文件下载,保存这个文件到你的电脑上. (Image#6)
    根据数据库的大小,这会花去你几分钟的时间.
  14. 下载完成后,查看'zipped' 操作, 点击 'Go', 下载另外一个文件.
    如果你想的话,你可以下载每个文件的压缩格式的备份。你的选择.
  15. 现在,你的数据库已经备份完毕.
  16. 记住 – 你没有备份文件和文件夹 – 如图片- 但是所有你的文章和评论现在已经是安全的了.

直接使用 MySQL 命令[ ]

phpMyAdmin 不能掌控大的数据库所以用直接 MySQL 代码会有所帮助 will help.

1. 把目录改成你想储存临时数据的地方:

user@linux:~> cd files/blog

2. 使用 mysqldump 来储存所有的数据库表格. 想储存某个特定的数据库表格,在通过(tablename tablename tablename)显示出来的地方给它们命名, 忽略( ) 中的圆括号. (想获得帮助信息, 尝试: man mysqldump.):

user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver
 -u mysqlusername -p databasename (tablename tablename tablename) | bzip2
 -c > blog.bak.sql.bz2

Enter password: (enter your mysql password)
user@linux~/files/blog>
Example:
mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp | bzip2 -c > blog.bak.sql.bz2

Enter password: my-password
user@linux~/files/blog>

| (pipe)之后的bzip2 -c语句意思是备份已经被压缩, > blog.bak.sql.bz2发送bzip到一个名字叫做的文件中。 blog.bak.sql.bz2. 和下面两个命令做的是同样的事情:

mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp > blog.bak.sql
bzip2 blog.bak.sql


使用 MySQL 管理员[ ]

MySQL 管理员是一个执行管理的程序。 操作, 如设置你的MySQL 服务器, 监测它的状态和表现, 开始或者是停止, 管理用户和连接,执行备份,储存备份等等一系列其他管理任务。你可以使用命令行界面执行这些任务中的大多数。如由mysqladmin 或者 mysql提供的, 但是MySQL 管理员在下面这些方面更具有优势:

  • 图形用户界面让它更容易使用
  • 它提供了更好的对你的MySQL服务器的界面,可靠性和安全性至关紧要的设置总览。
  • 它显示性能指示器是图形化的,这更容易决定和调整服务器设置。
  • Linux, Windows and MacOS X都可以使用, 允许远程客户端备份数据库交叉平台. 只要你进入了远程MySQL 数据库, 你就可以备份你的数据到任何具有写入权限的地方。
  • 对备份数据库的大小没有限制,因为有phpMyAdmin.

MySQL Administrator 是为MySQL servers 版本 4.0 及以上设计使用的。

使用MySQL 管理[ ]

MySQL 管理可以从the MySQL.Com site下载. 安装文件也可以从这里找到.

备份数据库[ ]

这里假设你已经安装了MySQL Admin 并设置好,这样你就可以本地或者远程登陆MySQL Database Server. 查阅安装说明中的MySQL Admin安装包文件。

1. 打开MySQL Admin 客户端登陆.

2. 从程序窗口左边的图像菜单中选择Backup.

3. 如果你没有创建一个Backup 项目, 现在点击窗口下部的 "New Project" 按钮,为Backup Project输入一个名字.

4. 选择一个或者更多你想备份的数据库(在MySQL Admin 程序中,这些叫做 "Schema" (pl. "Schemata")). 使用指向右边的箭头把它们加入到右边的Backup Content 窗口 。

5. 当你选择了Schema(ta), 你可以保存备份项目. 或者你可以简单的选择右下方的Backup Now 按钮.

6. 一个对话框将会产生,询问你要把备份保存在什么地方。输入路径名字或者通过浏览保存。

7. 假设所有步骤都正确 (并且你在写备份的目录拥有写入权限), 备份会很快完成.

从备份中恢复[ ]

1. 打开MySQL Admin 程序登陆.

2. 从图形界面的程序窗口左手边选择 Restore.

3. 点击右下方的"Open Backup File" 按钮。

4. 输入或者浏览至 Schema(ta) 备份文件,选择,点击"Open".

5. 目标 Schema(ta) 通常会在"Original Location", 或者你可以使用下拉菜单选择一个替代位置.

6. 点击右窗口下方 "Start Restore" 按钮。 数据库恢复开始

使用WordPress 数据库备份插件[ ]

Austin Matzko 维持了一个 WordPress 插件 ,最初是Skippy创建的,叫做 called WordPress 数据库备份. 它与WordPress 2.0绑定,但是现在不包括在WordPress 2.1中了。

安装插件[ ]

  1. 如果你下载了这个插件,按照wp-db-backup.txt 文件中的说明正确安装插件.

激活插件[ ]

  1. 确定wp-content 文件夹是通过你的服务器 可写入的 (更改 CHMOD)
  2. 进入Administration > Plugins > Plugins Panel 激活插件。

备份[ ]

  1. 进入Administration > Manage > Backup Panel
  2. 选择任何表格, 除了核心WordPress表格, 都应该被备份. 选择备份Backup操作; 备份会被保存到服务器上,下载或者被邮寄. 最后, 点击Backup按钮来执行备份。如果你安装了WP-Cron 插件, 你可以设置每日备份.

恢复数据[ ]

创建的文件是标准的 SQL 文件. 如果你想知道如何上传文件,参见从备份中恢复数据.

使用 CocoaMySQL[ ]

CocoaMySQL是一个免费的基于Mac OS X的 MySQL 客户端.

从CocoaMySQL 打开你的数据库选择File → Export → MySQL file…, 查看如下操作:

  • Add drop table
  • Add create table
  • Add table content

WordPress:Image:cocoamysql_export_dialog.png

资源和备份插件[ ]