﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-大漠驼铃-随笔分类-wordpress</title><link>http://www.blogjava.net/nkjava/category/44821.html</link><description>置身浩瀚的沙漠，方向最为重要，希望此blog能向大漠驼铃一样，给我方向和指引。
EJB/JPA/JSF/Struts/Spring/Hibernate/Perl/Shell/C/Java
</description><language>zh-cn</language><lastBuildDate>Sun, 25 Apr 2010 03:42:09 GMT</lastBuildDate><pubDate>Sun, 25 Apr 2010 03:42:09 GMT</pubDate><ttl>60</ttl><item><title>wordpress修改域名后的一些设置</title><link>http://www.blogjava.net/nkjava/archive/2010/04/25/319309.html</link><dc:creator>草原上的骆驼</dc:creator><author>草原上的骆驼</author><pubDate>Sun, 25 Apr 2010 03:32:00 GMT</pubDate><guid>http://www.blogjava.net/nkjava/archive/2010/04/25/319309.html</guid><wfw:comment>http://www.blogjava.net/nkjava/comments/319309.html</wfw:comment><comments>http://www.blogjava.net/nkjava/archive/2010/04/25/319309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/nkjava/comments/commentRss/319309.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/nkjava/services/trackbacks/319309.html</trackback:ping><description><![CDATA[本来安装在本地上的，设置的localhost,放在服务器上后发现css找不到，google了一下，找到了一往篇好文件，在这里整理一下，以备以后用。<br />
原文：http://wordpress.org.cn/thread-14131-1-1.html<br />
<br />
sql语法<br />
<br />
<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;表名&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;字段&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(字段,'替换内容',</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值');</span></div>
替换一个字段的一些内容.<br />
表smc_options里有siteurl和home的值，<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">update</span><span style="color: rgb(0, 0, 0);">&nbsp;smc_options&nbsp;</span><span style="color: rgb(0, 0, 255);">set</span><span style="color: rgb(0, 0, 0);">&nbsp;option_value</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(255, 0, 255);">replace</span><span style="color: rgb(0, 0, 0);">(option_value,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">localhost</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">你的域名</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">);</span></div>
<strong>更正文章中内部链接及附件的地址</strong>：<br />
文件内部如果有相关的连接和附件的地址，更正如下<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;smc_posts&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;post_content&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(post_content,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换内容</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">);</span></div>
<br />
更改文件的永久链接<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;smc_posts&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;guid&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(guid,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换内容</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">);</span></div>
<br />
<strong>更正博客用户里你的网站链接</strong>：（如果你的个人资料里没有填你的博客地址，可忽略）<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;smc_users&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;user_url&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(user_url,&#8217;替换内容&#8217;,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值&#8217;);</span></div>
<strong>更正评论者资料里你的博客链接</strong>：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;wp_users&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;user_url&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(user_url,&#8217;替换内容&#8217;,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值&#8217;);</span></div>
<strong>更正评论内容你的博客链接</strong>：（如果评论里没有你博客链接，可忽略）<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: rgb(0, 0, 255);">UPDATE</span><span style="color: rgb(0, 0, 0);">&nbsp;wp_users&nbsp;</span><span style="color: rgb(0, 0, 255);">SET</span><span style="color: rgb(0, 0, 0);">&nbsp;comment_content&nbsp;</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">REPLACE</span><span style="color: rgb(0, 0, 0);">(comment_content,&#8217;替换内容&#8217;,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">替换值&#8217;);</span></div>
<br />
<br />
<br />
<img src ="http://www.blogjava.net/nkjava/aggbug/319309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nkjava/" target="_blank">草原上的骆驼</a> 2010-04-25 11:32 <a href="http://www.blogjava.net/nkjava/archive/2010/04/25/319309.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>