<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[linux 安装 mysql设置为GBK成功笔录]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[数据库技术]]></category>
<pubDate>Mon, 27 Apr 2009 08:04:19 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	按以下完装可以解决 MYSQL 中文乱码问题 安装字体为GBK编码<br/><br/>我在linux 9 和linux as 3,linux as 4 下成功安装多次。<br/><br/>#groupadd mysql<br/>#useradd -g mysql mysql<br/>#tar -zxvf mysql-5.0.27.tar.gz<br/>#cd mysql-5.0.27<br/>#./configure -prefix=/opt/mysql -with-charset=gbk -with-extra-charsets=all<br/>#make<br/>#make install<br/>#cp support-files/my-medium.cnf /etc/my.cnf或者cp /opt/mysql/share/mysql/my-medium.cnf /etc/my.cnf<br/>#./scripts/mysql_install_db --user=mysql //初试化表并且规定用mysql用户来访问。初始化表以后就开始给mysql和root用户设定访问权限 <br/><br/>设置用户权限<br/>#chown -R root .<br/>#chown -R mysql var<br/>#chown -R mysql var/.<br/>#chgrp -R mysql .<br/><br/># cp support-files/mysql.server /etc/rc.d/init.d/mysqld<br/># chmod 700 /etc/init.d/mysqld<br/># chkconfig --add mysqld<br/># chkconfig --level 345 mysqld on <br/># service mysqld start<br/># netstat -atln 查看mysql端口3306是否打开，如果打开说明安装成功<br/><br/>更改root用户密码<br/>#./bin/mysqladmin -u root password &#039;new passwd&#039;<br/><br/>use 库名； 切换库名<br/>create table 表名 (字段设定列表)； 创建表<br/>create database 库名; 创建数据库<br/><br/>#grant select,insert,update,delete,index,alter,create,drop,grant,references,reload,shutdown,process,file,reload,shutdown,precess on *.* to user_1@&quot;%&quot; Identified by &#039;123&#039;;<br/><br/>#grant select,insert,update,delete,index,alter,create,drop on 库名.表名 to user_1@&quot;%&quot; Identified by &quot;123&quot;;<br/>Tags - <a href="http://www.dzhope.com/tags/mysql/" rel="tag">mysql</a> , <a href="http://www.dzhope.com/tags/%25E5%25AD%2597%25E7%25AC%25A6%25E9%259B%2586/" rel="tag">字符集</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] linux 安装 mysql设置为GBK成功笔录]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>