<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>那些花儿 &#187; Mysql</title>
	<atom:link href="http://0-o-0.cc/index.php/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://0-o-0.cc</link>
	<description>Those Flowers - Just A Blog</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:41:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>修改Wordpress数据表前缀的方法</title>
		<link>http://0-o-0.cc/index.php/2009/07/change-wordpress-mysql-datasheet-name/</link>
		<comments>http://0-o-0.cc/index.php/2009/07/change-wordpress-mysql-datasheet-name/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 12:07:39 +0000</pubDate>
		<dc:creator>長生天</dc:creator>
				<category><![CDATA[网站&技术]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://0-o-0.cc/?p=1522</guid>
		<description><![CDATA[一般新手安装Wordpress，数据表前缀都是默认的"wp_"，这有时候不太方便，比如我们想在一个数据库中安装多个Wordpress程序，为了区分它们，我们需要设置不同的数据表前缀，最简单的方法当然是安装的时候就指定不同的前缀，但有时候我们不得不修改已经存在的Wordpress数据表前缀，其实也很简单，只需要两步：
1.在phpmyadmin或其他数据库管理工具中执行下列语句，建议先执行前面的，最后两句单独执行
ALTER TABLE wp_comments RENAME new_comments;
ALTER TABLE wp_links RENAME new_links;
ALTER TABLE wp_options RENAME new_options;
ALTER TABLE wp_postmeta RENAME new_postmeta;
ALTER TABLE wp_posts RENAME new_posts;
ALTER TABLE wp_terms RENAME new_terms;
ALTER TABLE wp_term_relationships RENAME new_term_relationships;
ALTER TABLE wp_term_taxonomy RENAME new_term_taxonomy;
ALTER TABLE wp_usermeta RENAME new_usermeta;
ALTER TABLE wp_users RENAME new_users;
UPDATE new_options SET option_name = REPLACE(option_name,'wp_user_roles','new_user_roles');
UPDATE new_usermeta SET meta_key = REPLACE(meta_key,'wp_','new_’);
2.将wp-config.php文件中的
$table_prefix  = 'wp_';
替换为
$table_prefix  = 'new_';
*替换文中new为你想要设置的前缀
**本文假设旧的Wordpress数据表前缀是wp，如果不是，请替换
***如果你安装过含数据表的插件，比如NextGEN [...]]]></description>
			<content:encoded><![CDATA[<p>一般新手安装Wordpress，数据表前缀都是默认的"wp_"，这有时候不太方便，比如我们想在一个数据库中安装多个Wordpress程序，为了区分它们，我们需要设置不同的数据表前缀，最简单的方法当然是安装的时候就指定不同的前缀，但有时候我们不得不修改已经存在的Wordpress数据表前缀，其实也很简单，只需要两步：</p>
<p>1.在phpmyadmin或其他数据库管理工具中执行下列语句，建议先执行前面的，最后两句单独执行</p>
<blockquote><p>ALTER TABLE wp_comments RENAME <span style="color: #ff0000;">new</span>_comments;</p>
<p>ALTER TABLE wp_links RENAME <span style="color: #ff0000;">new</span>_links;</p>
<p>ALTER TABLE wp_options RENAME <span style="color: #ff0000;">new</span>_options;</p>
<p>ALTER TABLE wp_postmeta RENAME <span style="color: #ff0000;">new</span>_postmeta;</p>
<p>ALTER TABLE wp_posts RENAME <span style="color: #ff0000;">new</span>_posts;</p>
<p>ALTER TABLE wp_terms RENAME <span style="color: #ff0000;">new</span>_terms;</p>
<p>ALTER TABLE wp_term_relationships RENAME <span style="color: #ff0000;">new</span>_term_relationships;</p>
<p>ALTER TABLE wp_term_taxonomy RENAME <span style="color: #ff0000;">new</span>_term_taxonomy;</p>
<p>ALTER TABLE wp_usermeta RENAME <span style="color: #ff0000;">new</span>_usermeta;</p>
<p>ALTER TABLE wp_users RENAME <span style="color: #ff0000;">new</span>_users;</p>
<p>UPDATE <span style="color: #ff0000;">new</span>_options SET option_name = REPLACE(option_name,'wp_user_roles','<span style="color: #ff0000;">new</span>_user_roles');</p>
<p>UPDATE <span style="color: #ff0000;">new</span>_usermeta SET meta_key = REPLACE(meta_key,'wp_','<span style="color: #ff0000;">new</span>_’);</p></blockquote>
<p>2.将wp-config.php文件中的</p>
<blockquote><p>$table_prefix  = 'wp_';</p></blockquote>
<p>替换为</p>
<blockquote><p>$table_prefix  = '<span style="color: #ff0000;">new</span>_';</p></blockquote>
<p>*替换文中<span style="color: #ff0000;">new</span>为你想要设置的前缀<br />
**本文假设旧的Wordpress数据表前缀是wp，如果不是，请替换<br />
***如果你安装过含数据表的插件，比如NextGEN Gallery，你需要把所有与它相关的表前缀也替换掉，示例：<br />
ALTER TABLE wp_ngg_gallery RENAME <span style="color: #ff0000;">new</span>_ngg_gallery;<br />
****最后两句如果执行出错，可以手动替换表中的wp_为<span style="color: #ff0000;">new</span>_</p>
<p>一个建议，安装程序的时候不要使用它们默认的表前缀，预防冲突，也有益安全。<br />
一个提醒，如果你使用的不是默认的表前缀，在日后执行SQL语句的时候注意替换。</p>
]]></content:encoded>
			<wfw:commentRss>http://0-o-0.cc/index.php/2009/07/change-wordpress-mysql-datasheet-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux(LAMP)服务器配置手记</title>
		<link>http://0-o-0.cc/index.php/2009/03/linux-mysql/</link>
		<comments>http://0-o-0.cc/index.php/2009/03/linux-mysql/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 04:32:24 +0000</pubDate>
		<dc:creator>長生天</dc:creator>
				<category><![CDATA[网站&技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SecureCRT]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://0-o-0.cc/?p=465</guid>
		<description><![CDATA[Linux操作并不难，无非是把DOS的dir换成ls、copy换成cp，难的是思维方式的转换，习惯了Windows，经常会在Linux上犯一些白痴级别的错误(比如上篇密码输入问题)……不过还好，昨天折腾一天终于把Mysql装好了，记一下参考资料省得以后再搜~
LAMP
http://bbs.linuxtone.org/thread-122-1-1.html
http://hi.baidu.com/wangcnc2005/blog/item/d0ba6b4b86f1aaf583025c85.html
http://hi.baidu.com/luoyeguigen/blog/item/4d8e5543823523159213c6e6.html
http://hi.baidu.com/lookfor_love/blog/item/7a707f1fc86eedf21ad5764b.html
Mysql
安装卸载
Mysql官方下载：http://dev.mysql.com/downloads/mysql/5.0.html
5.0.67 tar.gz：http://hi.baidu.com/bainei/blog/item/f6a529d103fc263f9a502778.html
5.1 tar.gz：http://tech.sina.com.cn/s/2008-05-05/07372174929.shtml
5.0.26 rpm：http://www.knowsky.com/533111.html
RHEL自带mysql卸载：http://hi.baidu.com/wangcnc2005/blog/item/93a11709a3614587d0581bda.html
卸载2：http://www.knowsky.com/397020.html
常用命令
Mysql常用命令：http://www.lengmo.net/read.php?323
命令2：http://lawzjf.itpub.net/post/417/451872
service mysqld start
service mysqld stop
service mysqld restart
查看进程：netstat -l
路径：/usr/local/mysql/bin/
创建用户与权限：http://blog.chinaunix.net/u/22677/showart_398750.html
创建用户与权限2：http://hi.baidu.com/linda1001/blog/item/93acbd7ef1394c3f0dd7da1b.html
常见问题
-bash: mysql: command not found，此问题是由于未添加环境变量引起的，如果Mysql是装在/usr/local/mysql/bin下(默认)：
PATH=$PATH:/usr/local/mysql/bin/;export PATH
找回root密码：http://publish.it168.com/2006/0302/20060302161401.shtml
Chinaunix FAQ：http://bbs.chinaunix.net/viewthread.php?tid=662944
Apache
安装配置：http://hi.baidu.com/bin1228/blog/item/1ffd4bd9e6a3892c11df9bf9.html
安装配置2：http://hi.baidu.com/rel_conquer/blog/item/477d7e1fb2610166f624e4cd.html
安装配置3：http://www.enet.com.cn/article/2008/0128/A20080128134222.shtml，http://www.enet.com.cn/article/2007/0929/A20070929848906.shtml
虚拟主机：http://www.xici.net/b337310/d24062341.htm
虚拟主机2：http://hi.baidu.com/arxiba/blog/item/907d4f99ae2cfc0e6e068cea.html
vi /etc/httpd/conf/httpd.conf
vi /usr/local/apache2/conf/httpd.conf
中文乱码：http://bbs.chinaunix.net/viewthread.php?tid=420562
service httpd restart
/usr/local/apache2/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
# ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2
常见问题：http://bbs.linuxtone.org/thread-88-1-1.html
PHP
php.ini说明：http://www.cnscn.org/htm_data/365/0711/12590.html
其他
Windows下通过SecureCRT与Linux服务器上传/下载：http://www.91php.cn/rewrite.php/read-302.html
解压缩：http://hi.baidu.com/aquariusing/blog/item/6cb64d35deece949241f14fc.html
rpm -qa&#124;grep httpd(查询全部包名)
rmp -e httpd(删除软件包)
yum remove   httpd
相关网站
ChinaLinux：http://linux.chinaunix.net/bbs/
红联Linux：http://www.linuxdiyf.com/bbs/
悠悠博客：http://www.ajaxstu.com/
]]></description>
			<content:encoded><![CDATA[<p>Linux操作并不难，无非是把DOS的dir换成ls、copy换成cp，难的是思维方式的转换，习惯了Windows，经常会在Linux上犯一些白痴级别的错误(比如<a href="http://0-o-0.cc/index.php/2009/03/linux-password/" target="_blank">上篇密码输入问题</a>)……不过还好，昨天折腾一天终于把Mysql装好了，记一下参考资料省得以后再搜~</p>
<h4>LAMP</h4>
<p><a href="http://bbs.linuxtone.org/thread-122-1-1.html" target="_blank">http://bbs.linuxtone.org/thread-122-1-1.html</a></p>
<p><a href="http://bbs.linuxtone.org/thread-122-1-1.html"></a><a href="http://hi.baidu.com/wangcnc2005/blog/item/d0ba6b4b86f1aaf583025c85.html" target="_blank">http://hi.baidu.com/wangcnc2005/blog/item/d0ba6b4b86f1aaf583025c85.html</a></p>
<p><a href="http://hi.baidu.com/luoyeguigen/blog/item/4d8e5543823523159213c6e6.html" target="_blank">http://hi.baidu.com/luoyeguigen/blog/item/4d8e5543823523159213c6e6.html</a></p>
<p><a href="http://hi.baidu.com/lookfor_love/blog/item/7a707f1fc86eedf21ad5764b.html" target="_blank">http://hi.baidu.com/lookfor_love/blog/item/7a707f1fc86eedf21ad5764b.html</a></p>
<h4>Mysql</h4>
<p><strong>安装卸载</strong></p>
<p><strong><span style="font-weight: normal;">Mysql官方下载：<a href="http://dev.mysql.com/downloads/mysql/5.0.html" target="_blank">http://dev.mysql.com/downloads/mysql/5.0.html</a></span></strong></p>
<p>5.0.67 tar.gz：<a href="http://hi.baidu.com/bainei/blog/item/f6a529d103fc263f9a502778.html" target="_blank">http://hi.baidu.com/bainei/blog/item/f6a529d103fc263f9a502778.html</a></p>
<p>5.1 tar.gz：<a href="http://tech.sina.com.cn/s/2008-05-05/07372174929.shtml" target="_blank">http://tech.sina.com.cn/s/2008-05-05/07372174929.shtml</a></p>
<p>5.0.26 rpm：<a href="http://www.knowsky.com/533111.html" target="_blank">http://www.knowsky.com/533111.html</a></p>
<p>RHEL自带mysql卸载：<a href="http://hi.baidu.com/wangcnc2005/blog/item/93a11709a3614587d0581bda.html" target="_blank">http://hi.baidu.com/wangcnc2005/blog/item/93a11709a3614587d0581bda.html</a></p>
<p>卸载2：<a href="http://www.knowsky.com/397020.html" target="_blank">http://www.knowsky.com/397020.html</a></p>
<p><strong>常用命令</strong></p>
<p>Mysql常用命令：<a href="http://www.lengmo.net/read.php?323" target="_blank">http://www.lengmo.net/read.php?323</a></p>
<p>命令2：<a href="http://lawzjf.itpub.net/post/417/451872" target="_blank">http://lawzjf.itpub.net/post/417/451872</a></p>
<p><a href="http://lawzjf.itpub.net/post/417/451872" target="_blank"></a>service mysqld start<br />
service mysqld stop<br />
service mysqld restart</p>
<p>查看进程：netstat -l</p>
<p>路径：/usr/local/mysql/bin/</p>
<p>创建用户与权限：<a href="http://blog.chinaunix.net/u/22677/showart_398750.html" target="_blank">http://blog.chinaunix.net/u/22677/showart_398750.html</a></p>
<p>创建用户与权限2：<a href="http://hi.baidu.com/linda1001/blog/item/93acbd7ef1394c3f0dd7da1b.html" target="_blank">http://hi.baidu.com/linda1001/blog/item/93acbd7ef1394c3f0dd7da1b.html</a></p>
<p><strong>常见问题</strong></p>
<p>-bash: mysql: command not found，此问题是由于未添加环境变量引起的，如果Mysql是装在/usr/local/mysql/bin下(默认)：<br />
PATH=$PATH:/usr/local/mysql/bin/;export PATH</p>
<p>找回root密码：<a href="http://publish.it168.com/2006/0302/20060302161401.shtml" target="_blank">http://publish.it168.com/2006/0302/20060302161401.shtml</a></p>
<p>Chinaunix FAQ：<a href="http://bbs.chinaunix.net/viewthread.php?tid=662944" target="_blank">http://bbs.chinaunix.net/viewthread.php?tid=662944</a></p>
<h4>Apache</h4>
<p>安装配置：<a href="http://hi.baidu.com/bin1228/blog/item/1ffd4bd9e6a3892c11df9bf9.html" target="_blank">http://hi.baidu.com/bin1228/blog/item/1ffd4bd9e6a3892c11df9bf9.html</a></p>
<p>安装配置2：<a href="http://hi.baidu.com/rel_conquer/blog/item/477d7e1fb2610166f624e4cd.html" target="_blank">http://hi.baidu.com/rel_conquer/blog/item/477d7e1fb2610166f624e4cd.html</a></p>
<p>安装配置3：<a href="http://www.enet.com.cn/article/2008/0128/A20080128134222.shtml" target="_blank">http://www.enet.com.cn/article/2008/0128/A20080128134222.shtml</a>，<a href="http://www.enet.com.cn/article/2007/0929/A20070929848906.shtml" target="_blank">http://www.enet.com.cn/article/2007/0929/A20070929848906.shtml</a><a href="http://www.enet.com.cn/article/2007/0929/A20070929848906.shtml" target="_blank"></a></p>
<p>虚拟主机：<a href="http://www.xici.net/b337310/d24062341.htm" target="_blank">http://www.xici.net/b337310/d24062341.htm</a></p>
<p>虚拟主机2：<a href="http://hi.baidu.com/arxiba/blog/item/907d4f99ae2cfc0e6e068cea.html" target="_blank">http://hi.baidu.com/arxiba/blog/item/907d4f99ae2cfc0e6e068cea.html</a></p>
<p><a href="http://hi.baidu.com/arxiba/blog/item/907d4f99ae2cfc0e6e068cea.html"></a>vi /etc/httpd/conf/httpd.conf</p>
<p>vi /usr/local/apache2/conf/httpd.conf</p>
<p>中文乱码：<a href="http://bbs.chinaunix.net/viewthread.php?tid=420562" target="_blank">http://bbs.chinaunix.net/viewthread.php?tid=420562</a></p>
<p>service httpd restart</p>
<p>/usr/local/apache2/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory<br />
# ln -sf /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2</p>
<p>常见问题：<a href="http://bbs.linuxtone.org/thread-88-1-1.html" target="_blank">http://bbs.linuxtone.org/thread-88-1-1.html</a></p>
<h4>PHP</h4>
<p>php.ini说明：<a href="http://www.cnscn.org/htm_data/365/0711/12590.html" target="_blank">http://www.cnscn.org/htm_data/365/0711/12590.html</a></p>
<h4>其他</h4>
<p>Windows下通过SecureCRT与Linux服务器上传/下载：<a href="http://www.91php.cn/rewrite.php/read-302.html" target="_blank">http://www.91php.cn/rewrite.php/read-302.html</a></p>
<p>解压缩：<a href="http://hi.baidu.com/aquariusing/blog/item/6cb64d35deece949241f14fc.html" target="_blank">http://hi.baidu.com/aquariusing/blog/item/6cb64d35deece949241f14fc.html</a></p>
<p>rpm -qa|grep httpd(查询全部包名)</p>
<p>rmp -e httpd(删除软件包)</p>
<p>yum remove   httpd</p>
<h4>相关网站</h4>
<p>ChinaLinux：<a href="http://linux.chinaunix.net/bbs/" target="_blank">http://linux.chinaunix.net/bbs/</a></p>
<p>红联Linux：<a href="http://www.linuxdiyf.com/bbs/index.php" target="_blank">http://www.linuxdiyf.com/bbs/</a></p>
<p>悠悠博客：<a href="http://www.ajaxstu.com/" target="_blank">http://www.ajaxstu.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://0-o-0.cc/index.php/2009/03/linux-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux真安全……</title>
		<link>http://0-o-0.cc/index.php/2009/03/linux-password/</link>
		<comments>http://0-o-0.cc/index.php/2009/03/linux-password/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 09:47:25 +0000</pubDate>
		<dc:creator>長生天</dc:creator>
				<category><![CDATA[网站&技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[SecureCRT]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://0-o-0.cc/?p=460</guid>
		<description><![CDATA[刚玩Linux，在SecureCRT输入Mysql密码的时候键盘除了回车啥反应都没有，想了一个星期不知道哪出问题，结果今天su - root切换root用户才明白原来Linux输入密码就是这样，连“•、*”之类的隐藏提示符都没有，真安全……
]]></description>
			<content:encoded><![CDATA[<p>刚玩Linux，在SecureCRT输入Mysql密码的时候键盘除了回车啥反应都没有，想了一个星期不知道哪出问题，结果今天su - root切换root用户才明白原来Linux输入密码就是这样，连“•、*”之类的隐藏提示符都没有，真安全……</p>
]]></content:encoded>
			<wfw:commentRss>http://0-o-0.cc/index.php/2009/03/linux-password/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

