移动blog到自己服务器测试

以自己的经验很快就把一台破旧的机器装上了Ubuntu 9.10 server.你可以在网络上看到我转移成功的http://ls.ptubuntu.com

在系统上这安装apache2+php+mysql+phpmyadmin这个安装也很简单.只要几个键就可以搞定.要转移要做导入数据.进入你的phpmyadmin 在导入数据选择MYSQL323.



 因为我选择的是这个默认不是这个的哦.所以你要选择才行.下面这个你要另存为文件哦.你可以选择压缩这样可以有效的节约时间哦.

:
(
)

压缩:



在导入的也是同样的选择SQL格式.在导入完后.你把你的blog文档上传到服务器上.那么你上传完你还需要修改一个数据库的配置文档.那就是wp-config.php

#vi wp-config.php

<?php
// ** MySQL 设置 ** //
define(‘WP_CACHE’, true); //Added by WP-Cache Manager
define(‘DB_NAME’, ‘wwwptubuntucom‘);    // 数据库名称
define(‘DB_USER’, ‘root‘);     // 数据库用户名
define(‘DB_PASSWORD’, ‘xuejin‘); // 数据库密码
define(‘DB_HOST’, ‘localhost‘);    // 基本上,您无需更改以下选项这个要注意了.如果在自己的服务器上配置.那么这个就是本机.如果你的mysql在别的机器上.那么你就要填写相对的IP地址.
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);

配置完了.这就可以了.你成功了.

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/06/2791.html

Share

{ 发表评论? }

  1. raynix

    超前了,都9.10了啊!

  2. Sara

    Pretty good post. I just stumbled upon your blog and wanted to say
    that I have really liked browsing your posts. Any way
    I’ll be subscribing to your feed and I hope you post again soon!

  3. How I Make $5000 a Month Posting Links on Google

    Loved your latest post, by the way.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Verify Code   If you cannot see the CheckCode image,please refresh the page again!