<?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>Erick &#187; Linux相关</title>
	<atom:link href="http://blog.xiongchuan.org/category/tech/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.xiongchuan.org</link>
	<description>Even a great life is only a life until you make it.</description>
	<lastBuildDate>Thu, 10 Mar 2011 14:44:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://blog.xiongchuan.org/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</title>
		<link>http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html</link>
		<comments>http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 06:37:29 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=381</guid>
		<description><![CDATA[留着，仅供自己下次安装用。都是在网上找的方法，只是给组合了下。 (温馨提示:如果你复制的安装过程，可能有类似这样的错误: configure: warning: /usr/local/php:: invalid host type &#8230; configure: error: can only configure for one host and one target at a time 我写的是&#8211;with-前面是两个-，但是wp经过了处理变成一个-了，所以你在记事本里面把-替换成两个-就行了 ) 1、使用 yum 程序安装所需开发包（以下为标准的 RPM 包名称） # yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel # 这里我们将编译GD所必须的一些小软件比如libpng,libtiff,freetype,libjpeg等先用RPM的方式一并安装好，避免手动编译浪费时间，同时也能避免很多错误，这几个小软件的编译很麻烦。这几个小软件编译错误了，GD当然安装不了，php5的编译当然也没戏了。所以我们抓大放小，对这些小牛鬼蛇神采取快速简洁的方式进行安装。并且对服务器的性能也不能产生什么影响。 2、源码编译安装所需包 (Source) (1) GD2 # [...]]]></description>
			<content:encoded><![CDATA[<p>留着，仅供自己下次安装用。都是在网上找的方法，只是给组合了下。<br />
<span style="color: #ff0000;">(温馨提示:如果你复制的安装过程，可能有类似这样的错误:<br />
configure: warning: /usr/local/php:: invalid host type<br />
&#8230;<br />
configure: error: can only configure for one host and one target at a time<br />
<span style="color: #000000;">我写的是<span style="color: #ff0000;">&#8211;with-</span>前面是<span style="color: #ff0000;">两个-</span>，但是wp经过了处理变成<span style="color: #ff0000;">一个-</span>了，所以你在记事本里面把<span style="color: #ff0000;">-</span>替换成<span style="color: #ff0000;">两个-</span>就行了</span><br />
)</span></p>
<p>1、使用 yum 程序安装所需开发包（以下为标准的 RPM 包名称）<br />
# yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel</p>
<p># 这里我们将编译GD所必须的一些小软件比如libpng,libtiff,freetype,libjpeg等先用RPM的方式一并安装好，避免手动编译浪费时间，同时也能避免很多错误，这几个小软件的编译很麻烦。这几个小软件编译错误了，GD当然安装不了，php5的编译当然也没戏了。所以我们抓大放小，对这些小牛鬼蛇神采取快速简洁的方式进行安装。并且对服务器的性能也不能产生什么影响。</p>
<p>2、源码编译安装所需包 (Source)<br />
(1) GD2<br />
# cd /usr/local/src<br />
# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz<br />
# tar xzvf gd-2.0.33.tar.gz<br />
# cd gd-2.0.33<br />
# ./configure &#8211;prefix=/usr/local/gd2 &#8211;mandir=/usr/share/man //./configure 配置。<br />
# make //make 是用来编译的，它从 Makefile 中读取指令，然后编译。<br />
# make install //make install 是用来安装的，它也从 Makefile 中读取指令，安装到指定的位置。</p>
<p>(2) Apache 日志截断程序<br />
# cd /usr/local/src<br />
# wget http://cronolog.org/download/cronolog-1.6.2.tar.gz<br />
# tar xzvf cronolog-1.6.2.tar.gz<br />
# cd cronolog-1.6.2<br />
# ./configure &#8211;prefix=/usr/local/cronolog<br />
# make<br />
# make install</p>
<p>(3) libxml 库程序<br />
# cd /usr/local/src<br />
# wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.26.tar.gz<br />
# tar zxvf libxml2-2.6.26.tar.gz<br />
# cd libxml2-2.6.26<br />
# ./configure &#8211;prefix=/usr/local/libxml2<br />
# make<br />
# make install<br />
<span id="more-381"></span><br />
接下来进入正题，建议安装顺序Mysql,Apache,PHP<br />
3、本来想尝试用编译源码的方法安装Mysql，可是官主的5.1.4没有，就下载了5.1.3的，可是尝试装到非默认路径怎么都是出错，没办法就用了5.1.4的按照解压包里的INSTALL的提示，一步步安装到了/usr/local/mysql，挺简单。<br />
# useradd mysql //添加 mysql 用户<br />
# cd /usr/local/mysql<br />
# ./bin/mysql_install_db &#8211;user=mysql<br />
# chown -R root:mysql . //设置权限，注意后面有一个 &#8220;.&#8221;<br />
# chown -R mysql /var/lib/mysql //设置 mysql 目录权限<br />
# chgrp -R mysql . //注意后面有一个 &#8220;.&#8221;<br />
# cp share/mysql/my-medium.cnf /etc/my.cnf<br />
# cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //开机自动启动 mysql。<br />
# chmod 755 /etc/rc.d/init.d/mysqld<br />
# chkconfig &#8211;add mysqld</p>
<p>4、编译安装 Apache2.24<br />
这个最简单了，基本不会有错误发生。<br />
# tar zxvf httpd-2.2.4.tar.gz<br />
# cd httpd-2.2.4<br />
依次安装apr和apr-util（这两个文件夹在httpd-2.2.4/srclib/里面，如下操作）</p>
<p># cd srclib/apr<br />
# ./configure &#8211;prefix=/usr/local/apr &#8211;enable-threads &#8211;enable-other-child USE=ipv6<br />
# make &amp;&amp; make install</p>
<p># cd ../apr-util<br />
# ./configure &#8211;prefix=/usr/local/apr-util &#8211;with-apr=/usr/local/apr/ &#8211;with-mysql=/usr/local/mysql<br />
# make &amp;&amp; make install</p>
<p>yum install openssl-devel.x86_64</p>
<p>cd /usr/local/src/httpd-2.2.4<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-mods-shared=all &#8211;enable-deflate=shared &#8211;with-mysql=/usr/local/mysql &#8211;enable-cache &#8211;enable-file-cache &#8211;enable-mem-cache &#8211;enable-disk-cache &#8211;enable-static-support &#8211;enable-static-htpasswd &#8211;enable-static-htdigest &#8211;enable-static-rotatelogs &#8211;enable-static-logresolve &#8211;enable-static-htdbm &#8211;enable-static-ab &#8211;enable-static-checkgid &#8211;disable-cgid &#8211;disable-cgi &#8211;with-mpm=worker &#8211;with-apr=/usr/local/apr/ &#8211;with-apr-util=/usr/local/apr-util/ &#8211;enable-ssl &#8211;with-ssl=/usr/include/openssl</p>
<p># make<br />
# make install<br />
# echo &#8216;/usr/local/apache2/bin/apachectl start &#8216; &gt;&gt; /etc/rc.local //将 apachectl 的调用加入到你的系统启动文件中。</p>
<p>注解：<br />
./configure //配置源代码树<br />
&#8211;prefix=/usr/local/apache2 //体系无关文件的顶级安装目录PREFIX ，也就Apache的安装目录。<br />
&#8211;enable-module=so //打开 so 模块，so 模块是用来提 DSO 支持的 apache 核心模块<br />
&#8211;enable-mods-shared=all //编译全部的模板，对于不需要我们可以在httpd.conf去掉。<br />
&#8211;enable-cache //支持缓存<br />
&#8211;enable-file-cache //支持文件缓存<br />
&#8211;enable-mem-cache //支持记忆缓存<br />
&#8211;enable-disk-cache //支持磁盘缓存<br />
&#8211;enable-static-support //支持静态连接(默认为动态连接)<br />
&#8211;enable-static-htpasswd //使用静态连接编译 htpasswd &#8211; 管理用于基本认证的用户文件<br />
&#8211;enable-static-htdigest //使用静态连接编译 htdigest &#8211; 管理用于摘要认证的用户文件<br />
&#8211;enable-static-rotatelogs //使用静态连接编译 rotatelogs &#8211; 滚动 Apache 日志的管道日志程序<br />
&#8211;enable-static-logresolve //使用静态连接编译 logresolve &#8211; 解析 Apache 日志中的IP地址为主机名<br />
&#8211;enable-static-htdbm //使用静态连接编译 htdbm &#8211; 操作 DBM 密码数据库<br />
&#8211;enable-static-ab //使用静态连接编译 ab &#8211; Apache HTTP 服务器性能测试工具<br />
&#8211;enable-static-checkgid //使用静态连接编译 checkgid<br />
&#8211;disable-cgid //禁止用一个外部 CGI 守护进程执行CGI脚本<br />
&#8211;disable-cgi //禁止编译 CGI 版本的 PHP<br />
&#8211;with-mpm=worker // 让apache以worker方式运行<br />
&#8211;enable-ssl // 编译 ssl模块。</p>
<p>将apache设置成开机自启动:</p>
<p>在/etc/rc.d/rc.local文件中加入一行<br />
/usr/local/apache2/bin/apachectl start<br />
这样每次重新启动系统以后,apache也会随系统一起启动.</p>
<p>或者<br />
# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd<br />
然后 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面)<br />
# chkconfig: 2345 10 90<br />
# description: Activates/Deactivates Apache Web Server<br />
最后，运行chkconfig把Apache添加到系统的启动服务组里面：<br />
# chkconfig &#8211;add httpd<br />
# chkconfig httpd on</p>
<p>5、编译安装php5.3<br />
下载curl 安装到/usr/loca/curl<br />
./configure &#8211;prefix=/usr/local/php &#8211;with-apxs2=/usr/local/apache2/bin/apxs &#8211;with-zlib-dir &#8211;with-bz2 &#8211;with-tiff-dir &#8211;with-libxml-dir=/usr/local/libxml2 &#8211;with-gd=/usr/local/gd2 &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-ttf &#8211;enable-mbstring &#8211;with-mysql=/usr/local/mysql &#8211;with-mysqli=/usr/local/mysql/bin/mysql_config &#8211;with-config-file-path=/etc &#8211;with-iconv &#8211;disable-ipv6 &#8211;enable-static &#8211;enable-maintainer-zts &#8211;enable-memory-limit &#8211;enable-zend-multibyte &#8211;enable-inline-optimization  &#8211;enable-sockets &#8211;enable-soap &#8211;with-openssl &#8211;with-curl=/usr/local/curl</p>
<p># make</p>
<p># make install</p>
<p># cp php.ini-recommended /etc/php.ini</p>
<p>6、整合apache 与php<br />
# vi /usr/local/apache2/conf/httpd.conf<br />
在最后一行加上：<br />
AddType application/x-httpd-php .php</p>
<p>查找：(设置 WEB 默认文件)<br />
DirectoryIndex index.html<br />
替换为：<br />
DirectoryIndex index.php index.html index.htm //在 WEB 目录不到默认文件，httpd 就会执行 /var/www/error/noindex.html</p>
<p>找到这一段：<br />
# AllowOverride controls what directives may be placed in .htaccess files.<br />
# It can be &#8220;All&#8221;, &#8220;None&#8221;, or any combination of the keywords:<br />
# Options FileInfo AuthConfig Limit<br />
#<br />
AllowOverride none</p>
<p>更改为AllowOverride all<br />
允许apache rewrite</p>
<p># 监听443端口,支持https连接<br />
取消注释 httpd.conf 中的 Include conf/extra/httpd-ssl.conf</p>
<p>保存httpd.conf，退出。</p>
<p># /usr/local/apache2/bin/apachectl restart //重启 Apache</p>
<p>以上就完成了，因为我用到的东西比较简单，所以这是最基本的安装了。</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html" title="Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;">Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;</a></li><li><a href="http://blog.xiongchuan.org/batch-delete-blank-lines.html" title="PHP批量删除空行|wordpress迁移的艰辛">PHP批量删除空行|wordpress迁移的艰辛</a></li><li><a href="http://blog.xiongchuan.org/cant-find-messagefile-resolve.html" title="MySQL Can&#8217;t find messagefile,解决方法">MySQL Can&#8217;t find messagefile,解决方法</a></li><li><a href="http://blog.xiongchuan.org/mysql-find-and-delete-duplicate-records.html" title="mysql 查找重复记录 删除重复记录">mysql 查找重复记录 删除重复记录</a></li><li><a href="http://blog.xiongchuan.org/warning-strtotime-function-strtotime-it-is-not-safe-to-rely-on-the-system-timezone-settings-resolve.html" title="Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. 解决方法">Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. 解决方法</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下eclipse支持GBK编码</title>
		<link>http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html</link>
		<comments>http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 07:00:42 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[gbk编码]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=366</guid>
		<description><![CDATA[差不多到了11点才把系统搞定，下载了pdt，就要开始工作了，从SVN检出项目后（eclipse的svn插件用起来就是爽），UTF－8的编码几好， 我们公司偏搞了个GBK的。。。没想到linux下eclipse竟然在首选项里没办法把工程的编码改成GBK的，google，网上好多在ubuntu下面解决方法。。。 老大来催，随便找一个方法，现在记下， 1.Window->Preferences->General->Content Types->text(右侧窗口)->Default encoding(OK按钮左上方)->输入GBK->update(右边) 2.file Associations(当前窗口最上面)->add->输入.php 这样确实是解决了，打开php文件不再显示乱码了，但是觉得这个方法有待考查。。。开工了，先记下再说。 Related PostsEclipse error:selection job title,已解决CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器双系统开机进入GRUB的解决办法CentOS5.3安装Filezilla FTP软件eclipse语言包，用迅雷批量下载Eclipse3.5 中文语言包 下载PDT:创建PHP项目出现“Creation of element failed”错误的解决方法VMWare 6.5 未找到驱动器]]></description>
			<content:encoded><![CDATA[<p>差不多到了11点才把系统搞定，下载了pdt，就要开始工作了，从SVN检出项目后（eclipse的svn插件用起来就是爽），UTF－8的编码几好，<br />
我们公司偏搞了个GBK的。。。没想到linux下eclipse竟然在首选项里没办法把工程的编码改成GBK的，google，网上好多在ubuntu下面解决方法。。。</p>
<p>老大来催，随便找一个方法，现在记下，<br />
1.Window->Preferences->General->Content Types->text(右侧窗口)->Default encoding(OK按钮左上方)->输入GBK->update(右边)<br />
2.file Associations(当前窗口最上面)->add->输入.php</p>
<p>这样确实是解决了，打开php文件不再显示乱码了，但是觉得这个方法有待考查。。。开工了，先记下再说。</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/eclipse-erro-selection-job-title.html" title="Eclipse error:selection job title,已解决">Eclipse error:selection job title,已解决</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li><li><a href="http://blog.xiongchuan.org/batch-download-eclipse-language-package.html" title="eclipse语言包，用迅雷批量下载">eclipse语言包，用迅雷批量下载</a></li><li><a href="http://blog.xiongchuan.org/eclipse-for-php-3-5-downoad.html" title="Eclipse3.5 中文语言包 下载">Eclipse3.5 中文语言包 下载</a></li><li><a href="http://blog.xiongchuan.org/pdt-create-php-project-creation-of-element-failed-resove.html" title="PDT:创建PHP项目出现“Creation of element failed”错误的解决方法">PDT:创建PHP项目出现“Creation of element failed”错误的解决方法</a></li><li><a href="http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html" title="VMWare 6.5 未找到驱动器">VMWare 6.5 未找到驱动器</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>双系统开机进入GRUB的解决办法</title>
		<link>http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html</link>
		<comments>http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 06:45:33 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[Windows相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[双系统]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=364</guid>
		<description><![CDATA[昨天装的centos，今天一开机，就进入了grub的黑屏状态，像我这样的新手，没一点办法，留下点记号。 1. grub>rootnoverify (hd0,0) 2.grub>chainloader +1 3.grub>boot 这时候，熟悉的XP又出现了。进入之后，要想修复方法可多了，Google,百度&#8230;. 当然这几行适用大部分的新手，正常人都是把Windows装的第一个分区。 当然也可以设置LINUX，手动加载内核，可惜没有机会验证网上的说法是否正确了，所以就不记录了。。。 PS：就算我加载了XP，也没办法进入，分区表坏了，公司竟然只有一张老的XP盘，还没有Windows PE,什么都干不了，沉默之后决定玩Centos啦！ Related PostsCentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器CentOS下eclipse支持GBK编码CentOS5.3安装Filezilla FTP软件VMWare 6.5 未找到驱动器Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;CentOS下安装vmware-tools的方法]]></description>
			<content:encoded><![CDATA[<p>昨天装的centos，今天一开机，就进入了grub的黑屏状态，像我这样的新手，没一点办法，留下点记号。</p>
<p>1. grub>rootnoverify  (hd0,0)<br />
2.grub>chainloader    +1<br />
3.grub>boot</p>
<p>这时候，熟悉的XP又出现了。进入之后，要想修复方法可多了，Google,百度&#8230;.<br />
当然这几行适用大部分的新手，正常人都是把Windows装的第一个分区。</p>
<p>当然也可以设置LINUX，手动加载内核，可惜没有机会验证网上的说法是否正确了，所以就不记录了。。。<br />
PS：就算我加载了XP，也没办法进入，分区表坏了，公司竟然只有一张老的XP盘，还没有Windows PE,什么都干不了，沉默之后决定玩Centos啦！</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li><li><a href="http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html" title="VMWare 6.5 未找到驱动器">VMWare 6.5 未找到驱动器</a></li><li><a href="http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html" title="Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;">Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;</a></li><li><a href="http://blog.xiongchuan.org/centos-setup-vmware-tools.html" title="CentOS下安装vmware-tools的方法">CentOS下安装vmware-tools的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CentOS5.3安装Filezilla FTP软件</title>
		<link>http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html</link>
		<comments>http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 06:35:52 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[filezilla]]></category>
		<category><![CDATA[ftp软件]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=362</guid>
		<description><![CDATA[昨天在公司装了个双系统centos5.3，装好后回到XP用的挺好，今天一来开机就直接进入GRUB, 用同事电脑查了下说是系统出了小问题，后来发现是分区表的问题，索性全格了，用CentOS5.3 GUI的FTP安装 ，要搞清楚操作系统是32位还是64位，Filezilla如果下载了高版本的，会无法运行的 但是直接下载FileZilla_3.2.8.1_i586-linux-gnu.tar.bz2也运行不了，会提示 ./filezilla: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory 网上查了好像就是CentOS的问题，要用非官方的 FileZilla 3.2.4 for CentOS 5.3 这个下载地址是 http://wiki.filezilla-project.org/Unofficial_Binaries linux新手，为这问题，搞了好大一会，国内都找不到解决方法，还是在国外的论坛里有人提供解决办法！ 哎！ Related PostsCentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器CentOS下eclipse支持GBK编码双系统开机进入GRUB的解决办法VMWare 6.5 未找到驱动器Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;CentOS下安装vmware-tools的方法]]></description>
			<content:encoded><![CDATA[<p>昨天在公司装了个双系统centos5.3，装好后回到XP用的挺好，今天一来开机就直接进入GRUB,<br />
用同事电脑查了下说是系统出了小问题，后来发现是分区表的问题，索性全格了，用CentOS5.3</p>
<p>GUI的FTP安装 ，要搞清楚操作系统是32位还是64位，Filezilla如果下载了高版本的，会无法运行的</p>
<p>但是直接下载FileZilla_3.2.8.1_i586-linux-gnu.tar.bz2也运行不了，会提示<br />
./filezilla: error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory<br />
网上查了好像就是CentOS的问题，要用非官方的<br />
FileZilla 3.2.4 for CentOS 5.3 这个下载地址是</p>
<p>http://wiki.filezilla-project.org/Unofficial_Binaries</p>
<p>linux新手，为这问题，搞了好大一会，国内都找不到解决方法，还是在国外的论坛里有人提供解决办法！<br />
哎！</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html" title="VMWare 6.5 未找到驱动器">VMWare 6.5 未找到驱动器</a></li><li><a href="http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html" title="Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;">Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;</a></li><li><a href="http://blog.xiongchuan.org/centos-setup-vmware-tools.html" title="CentOS下安装vmware-tools的方法">CentOS下安装vmware-tools的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无法远程连接mysql的问题,已经解决</title>
		<link>http://blog.xiongchuan.org/mysql-remote-conncet-resolve.html</link>
		<comments>http://blog.xiongchuan.org/mysql-remote-conncet-resolve.html#comments</comments>
		<pubDate>Tue, 22 Sep 2009 03:57:15 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql远程连接]]></category>

		<guid isPermaLink="false">http://www.pigblog.net/?p=246</guid>
		<description><![CDATA[最近的工作，需要连接远程mysql，平时都是在本地搞，遇到问题了，现在记录下来。 本文转载http://www.51testing.com/?uid-27242-action-viewspace-itemid-84886 解决Mysql无法远程连接的问题 1、Mysql的端口是否正确，通过netstat -ntlp查看端口占用情况，一般情况下端口是3306。在用工具连接MySQl是要用到端口。例如My Admin\My Query Browser\MySQl Front等。 2、检查用户权限是否正确。 例如：用户Tester,user表里有两条记录：host分别为localhost和%(为了安全，%可以换成你需要外部连接的IP)。 3、查看/etc/my.cnf中,skip-networking 是否已被注掉,需要注掉。（这是我遇到的问题） 报错：ERROR 2003 (HY000): Can&#8217;t connect to MySQL server on &#8217;192.168.1.3&#8242; (10061) 4、查看iptables是否停掉,没关的情况下,无法连接。 通过：service iptables stop临时关闭。 报错：ERROR 2003 (HY000): Can&#8217;t connect to MySQL server on &#8217;192.168.1.3&#8242; (10065) 补充：除了关闭防火墙，也可以往防火墙里写tcp 3306端口，新手建议采用上面的方法，高手当然会管理防火墙了。下面的链接是我学习的的链接。 http://hi.baidu.com/richardlee007/blog/item/c0bbb186a7474f3667096eaf.html Most Commented Posts发一个dedeEIMS企业模板Guestbook博客终于恢复啦MySQL Can&#8217;t find messagefile,解决方法2010沉默几天武汉的这个六月搬家啦,上班不怕迟到了……About]]></description>
			<content:encoded><![CDATA[<p>最近的工作，需要连接远程mysql，平时都是在本地搞，遇到问题了，现在记录下来。<strong><br />
本文转载</strong>http://www.51testing.com/?uid-27242-action-viewspace-itemid-84886<br />
<strong>解决Mysql无法远程连接的问题</strong></p>
<blockquote><p>1、Mysql的端口是否正确，通过netstat -ntlp查看端口占用情况，一般情况下端口是3306。在用工具连接MySQl是要用到端口。例如My Admin\My Query Browser\MySQl Front等。</p>
<p>2、检查用户权限是否正确。<br />
例如：用户Tester,user表里有两条记录：host分别为localhost和%(为了安全，%可以换成你需要外部连接的IP)。</p>
<p>3、<span style="color: #ff0000;">查看/etc/my.cnf中,skip-networking 是否已被注掉,需要注掉。</span>（这是我遇到的问题）<br />
报错：ERROR 2003 (HY000): Can&#8217;t connect to MySQL server on &#8217;192.168.1.3&#8242; (10061)</p>
<p>4、查看iptables是否停掉,没关的情况下,无法连接。<br />
通过：service iptables stop临时关闭。<br />
报错：ERROR 2003 (HY000): Can&#8217;t connect to MySQL server on &#8217;192.168.1.3&#8242; (10065)<br />
补充：除了关闭防火墙，也可以往防火墙里写tcp 3306端口，新手建议采用上面的方法，高手当然会管理防火墙了。下面的链接是我学习的的链接。</p>
<p>http://hi.baidu.com/richardlee007/blog/item/c0bbb186a7474f3667096eaf.html</p>
</blockquote>
<h4  class="entry-title">Most Commented Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/an-enterprise-theme-for-dedeeims.html" title="发一个dedeEIMS企业模板">发一个dedeEIMS企业模板</a></li><li><a href="http://blog.xiongchuan.org/guestbook" title="Guestbook">Guestbook</a></li><li><a href="http://blog.xiongchuan.org/blog-recovery-again.html" title="博客终于恢复啦">博客终于恢复啦</a></li><li><a href="http://blog.xiongchuan.org/cant-find-messagefile-resolve.html" title="MySQL Can&#8217;t find messagefile,解决方法">MySQL Can&#8217;t find messagefile,解决方法</a></li><li><a href="http://blog.xiongchuan.org/2010-bad-day.html" title="2010沉默几天">2010沉默几天</a></li><li><a href="http://blog.xiongchuan.org/these-days-in-wuhan.html" title="武汉的这个六月">武汉的这个六月</a></li><li><a href="http://blog.xiongchuan.org/move-house.html" title="搬家啦,上班不怕迟到了……">搬家啦,上班不怕迟到了……</a></li><li><a href="http://blog.xiongchuan.org/about" title="About">About</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/mysql-remote-conncet-resolve.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare 6.5 未找到驱动器</title>
		<link>http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html</link>
		<comments>http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 08:00:29 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.wp.com/wordpress/?p=70</guid>
		<description><![CDATA[要做邮件系统，在LINUX下做的，所以就要安装LINUX系统了，用的是VMWare6.5 不过遇到一点奇怪的事，第一次安装的时候，一路NEXT就可以正常安装， 可是现在再装一个的时候，第三步了就出现未找到驱动器，不知道为什么。。。 网上搜了下，发现是硬盘选择的问题，默认是SCSI，现在改成IDE就正常了。 虽然问题是解决了，但是还是让人郁闷，为什么第一次是正常的呢 自己解决:哎，因为我用的是CentOS，所以新建一个虚拟机的时候要选择Red Hat Linux 5才行 Related PostsCentOS下安装vmware-tools的方法CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器CentOS下eclipse支持GBK编码双系统开机进入GRUB的解决办法CentOS5.3安装Filezilla FTP软件Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;]]></description>
			<content:encoded><![CDATA[<p>要做邮件系统，在LINUX下做的，所以就要安装LINUX系统了，用的是VMWare6.5</p>
<p>不过遇到一点奇怪的事，第一次安装的时候，一路NEXT就可以正常安装，</p>
<p>可是现在再装一个的时候，第三步了就出现未找到驱动器，不知道为什么。。。</p>
<p>网上搜了下，发现是硬盘选择的问题，默认是SCSI，现在改成IDE就正常了。</p>
<p>虽然问题是解决了，但是还是让人郁闷，为什么第一次是正常的呢</p>
<p><span style="color: #ff0000;">自己解决:哎，因为我用的是CentOS，所以新建一个虚拟机的时候要选择Red Hat Linux 5才行</span></p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/centos-setup-vmware-tools.html" title="CentOS下安装vmware-tools的方法">CentOS下安装vmware-tools的方法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li><li><a href="http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html" title="Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;">Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux修改文件及文件夹权限</title>
		<link>http://blog.xiongchuan.org/linux-change-file-dir-permissions.html</link>
		<comments>http://blog.xiongchuan.org/linux-change-file-dir-permissions.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:22:40 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://www.wp.com/wordpress/?p=37</guid>
		<description><![CDATA[LINUX学习中，有用的东西保存下来 先来了解一下文件属性， 在shell环境里输入：ls -l 可以查看当前目录文件。如： drwxr-xr-x 2 nsf users 1024 12-10 17:37 下载文件备份 分别对应的是： 文件属性 连接数 文件拥有者 所属群组 文件大小 文件修改时间 文件名 这里r是可读，w可写,x 可执行，其中文件属性分为四段，&#8212;- &#8212; &#8212; 10个位置 例如： d 　 rwx 　 r-x　 r-x 第一个字符指定了文件类型。在通常意义上，一个目录也是一个文件。如果第一个字符是横线，表示是一个非目录的文件。如果是d，表示是一个目录。 第二段是文件拥有者的属性， 第三段是文件所属群组的属性， 第四段是对于其它用户的属性， 如上面文件夹“下载文件备份” 的访问权限，表示文件夹“下载文件备份” 是一个目录文件；文件夹“下载文件备份” 的属主有读写可执行权限；与文件夹“下载文件备份” 属主同组的用户只有读和可执行权限；其他用户也有读和可执行权限。 确定了一个文件的访问权限后，用户可以利用Linux系统提供的chmod命令来重新设定不同的访问权限。也可以利用chown命令来更改某个文件或目录的所有者。利用chgrp命令来更改某个文件或目录的用户组。 chmod 命令 功能：chmod命令是非常重要的，用于改变文件或目录的访问权限.用户用它控制文件或目录的访问权限. 语法：该命令有两种用法。一种是包含字母和操作符表达式的文字设定法；另一种是包含数字的数字设定法。 1. 文字设定法 chmod [who] [+ &#124; - &#124; [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">LINUX学习中，有用的东西保存下来</span><br />
先来了解一下文件属性，<br />
在shell环境里输入：ls -l 可以查看当前目录文件。如：<br />
drwxr-xr-x 2 nsf users 1024 12-10 17:37 下载文件备份<br />
分别对应的是：<br />
文件属性 连接数 文件拥有者 所属群组 文件大小 文件修改时间 文件名<br />
这里r是可读，w可写,x 可执行，其中文件属性分为四段，&#8212;- &#8212; &#8212; 10个位置<br />
例如：<br />
d 　 rwx 　 r-x　 r-x<br />
第一个字符指定了文件类型。在通常意义上，一个目录也是一个文件。如果第一个字符是横线，表示是一个非目录的文件。如果是d，表示是一个目录。<br />
第二段是文件拥有者的属性，<br />
第三段是文件所属群组的属性，<br />
第四段是对于其它用户的属性，<br />
如上面文件夹“下载文件备份” 的访问权限，表示文件夹“下载文件备份” 是一个目录文件；文件夹“下载文件备份” 的属主有读写可执行权限；与文件夹“下载文件备份” 属主同组的用户只有读和可执行权限；其他用户也有读和可执行权限。<br />
确定了一个文件的访问权限后，用户可以利用Linux系统提供的chmod命令来重新设定不同的访问权限。也可以利用chown命令来更改某个文件或目录的所有者。利用chgrp命令来更改某个文件或目录的用户组。<br />
chmod 命令<br />
功能：chmod命令是非常重要的，用于改变文件或目录的访问权限.用户用它控制文件或目录的访问权限.<br />
语法：该命令有两种用法。一种是包含字母和操作符表达式的文字设定法；另一种是包含数字的数字设定法。</p>
<p><span id="more-37"></span>1. 文字设定法<br />
chmod [who] [+ | - | =] [mode] 文件名<br />
参数：<br />
操作对象who可是下述字母中的任一个或者它们的组合：<br />
u 表示“用户（user）”，即文件或目录的所有者。<br />
g 表示“同组（group）用户”，即与文件属主有相同组ID的所有用户。<br />
o 表示“其他（others）用户”。<br />
a 表示“所有（all）用户”。它是系统默认值。<br />
操作符号可以是：<br />
+ 添加某个权限。<br />
- 取消某个权限。<br />
= 赋予给定权限并取消其他所有权限（如果有的话）。</p>
<p>设置mode所表示的权限可用下述字母的任意组合：<br />
r 可读。<br />
w 可写。<br />
x 可执行。<br />
X 只有目标文件对某些用户是可执行的或该目标文件是目录时才追加x 属性。<br />
s 在文件执行时把进程的属主或组ID置为该文件的文件属主。方式“u＋s”设置文件的用         户ID位，“g＋s”设置组ID位。<br />
t 保存程序的文本到交换设备上。<br />
u 与文件属主拥有一样的权限。<br />
g 与和文件属主同组的用户拥有一样的权限。<br />
o 与其他用户拥有一样的权限。<br />
文件名：以空格分开的要改变权限的文件列表，支持通配符。<br />
在一个命令行中可给出多个权限方式，其间用逗号隔开。例如：chmod g+r，o+r example<br />
使同组和其他用户对文件example 有读权限。<br />
chgrp命令<br />
功能：改变文件或目录所属的组。<br />
语法：chgrp [选项] group filename?<br />
该命令改变指定指定文件所属的用户组。其中group可以是用户组ID，也可以是/etc/group文件中用户组的组名。文件名是以空格分开的要改变属组的文件列表，支持通配符。如果用户不是该文件的属主或超级用户，则不能改变该文件的组。<br />
参数：<br />
- R 递归式地改变指定目录及其下的所有子目录和文件的属组。<br />
例1：$ chgrp &#8211; R book /opt/local /book<br />
改变/opt/local /book/及其子目录下的所有文件的属组为book。<br />
chown 命令<br />
功能：更改某个文件或目录的属主和属组。这个命令也很常用。例如root用户把自己的一个文件拷贝给用户xu，为了让用户xu能够存取这个文件，root用户应该把这个文件的属主设为xu，否则，用户xu无法存取这个文件。<br />
语法：chown [选项] 用户或组 文件<br />
说明：chown将指定文件的拥有者改为指定的用户或组。用户可以是用户名或用户ID。组可以是组名或组ID。文件是以空格分开的要改变权限的文件列表，支持通配符。<br />
参数：<br />
- R 递归式地改变指定目录及其下的所有子目录和文件的拥有者。<br />
- v 显示chown命令所做的工作。<br />
例1：把文件shiyan.c的所有者改为wang。<br />
$ chown wang shiyan.c<br />
例2：把目录/his及其下的所有文件和子目录的属主改成wang，属组改成users。<br />
$ chown &#8211; R wang.users /his</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/centos-setup-vmware-tools.html" title="CentOS下安装vmware-tools的方法">CentOS下安装vmware-tools的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/linux-change-file-dir-permissions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#039;localhost&#8217;</title>
		<link>http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html</link>
		<comments>http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:20:05 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.wp.com/wordpress/?p=34</guid>
		<description><![CDATA[本文转载：http://www.linuxdiyf.com/viewarticle.php?id=104290 在LINUX下，安装了iRedMail后进不去MYSQL。。。。 在网上找到了重新设置MYSQL密码的方法，现在转载到我的博客里，记下来，到底是不是出于我转载的网址，那就不是 我讨论的了，如果不是还请原作者见谅。 mysql -uroot -p 输入设置的密码 竟然报错了！ ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: YSE) 问朋友，他说初始密码是空的，可我命名设置了密码的阿。 密码留空 还是错误！ ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO) 于是重改密码！ # /etc/init.d/mysql stop # mysqld_safe &#8211;user=mysql &#8211;skip-grant-tables &#8211;skip-networking &#38; # mysql -u root mysql mysql&#62; UPDATE user SET Password=PASSWORD(&#8216;newpassword&#8217;) where [...]]]></description>
			<content:encoded><![CDATA[<p>本文转载：<a href="http://www.linuxdiyf.com/viewarticle.php?id=104290" rel="external nofollow">http://www.linuxdiyf.com/viewarticle.php?id=104290</a></p>
<p>在LINUX下，安装了iRedMail后进不去MYSQL。。。。<br />
在网上找到了重新设置MYSQL密码的方法，现在转载到我的博客里，记下来，到底是不是出于我转载的网址，那就不是<br />
我讨论的了，如果不是还请原作者见谅。</p>
<p>mysql -uroot -p</p>
<p>输入设置的密码</p>
<p>竟然报错了！</p>
<p>ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: YSE)</p>
<p>问朋友，他说初始密码是空的，可我命名设置了密码的阿。</p>
<p>密码留空</p>
<p>还是错误！</p>
<p>ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: NO)</p>
<p>于是重改密码！</p>
<p># /etc/init.d/mysql stop<br />
# mysqld_safe &#8211;user=mysql &#8211;skip-grant-tables &#8211;skip-networking &amp;<br />
# mysql -u root mysql<br />
mysql&gt; UPDATE user SET Password=PASSWORD(&#8216;newpassword&#8217;) where USER=&#8217;root&#8217;;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; quit</p>
<p># /etc/init.d/mysqld restart<br />
# mysql -uroot -p<br />
Enter password:</p>
<p>mysql&gt;</p>
<p>搞定！</p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/cant-find-messagefile-resolve.html" title="MySQL Can&#8217;t find messagefile,解决方法">MySQL Can&#8217;t find messagefile,解决方法</a></li><li><a href="http://blog.xiongchuan.org/mysql-find-and-delete-duplicate-records.html" title="mysql 查找重复记录 删除重复记录">mysql 查找重复记录 删除重复记录</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li><li><a href="http://blog.xiongchuan.org/mysql-backup.html" title="MySQL备份">MySQL备份</a></li><li><a href="http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html" title="VMWare 6.5 未找到驱动器">VMWare 6.5 未找到驱动器</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下安装vmware-tools的方法</title>
		<link>http://blog.xiongchuan.org/centos-setup-vmware-tools.html</link>
		<comments>http://blog.xiongchuan.org/centos-setup-vmware-tools.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:16:21 +0000</pubDate>
		<dc:creator>Erick</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.wp.com/wordpress/?p=31</guid>
		<description><![CDATA[本文原创，转载请注明出处，谢谢合作 CentOS下安装vmware-tools CentOS下从 虚拟机-&#62;install vmware tools 没有反应 所以，在自己创建的虚拟系统那里 设置-&#62;CD/DVD-&#62; 从ISO镜像-&#62;选择linux.iso（vmware tools，这个一般在vmware-tools这个文件夹里，如果没有自己下载） 以ROOT身份进入系统 在桌面上有一个虚拟光盘，进入是vmware-tools-distrib 我把这个拷贝到 /tmp/下  然后进入vmware-tools-distrib 在终端输入 ./vmware-install.pl 提示权限不够，但我是以root身份进入的，想不明白，后来就是它提示哪个文件权限不够，我就找到那个文件，右键属性-&#62;权限-&#62;允许以程序执行文件 这样就OK了 Related PostsVMWare 6.5 未找到驱动器CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器CentOS下eclipse支持GBK编码双系统开机进入GRUB的解决办法CentOS5.3安装Filezilla FTP软件Linux修改文件及文件夹权限Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">本文原创，转载请注明出处，谢谢合作</span><br />
CentOS下安装vmware-tools<br />
CentOS下从 虚拟机-&gt;install vmware tools 没有反应<br />
所以，在自己创建的虚拟系统那里 设置-&gt;CD/DVD-&gt; 从ISO镜像-&gt;选择linux.iso（vmware tools，这个一般在vmware-tools这个文件夹里，如果没有自己下载）<br />
以ROOT身份进入系统<br />
在桌面上有一个虚拟光盘，进入是vmware-tools-distrib 我把这个拷贝到 /tmp/下  然后进入vmware-tools-distrib<br />
<span style="color: #ff0000;">在终端输入 ./vmware-install.pl<br />
提示权限不够，但我是以root身份进入的，想不明白，后来就是它提示哪个文件权限不够，我就找到那个文件，右键属性-&gt;权限-&gt;允许以程序执行文件 这样就OK了</span></p>
<h4  class="entry-title">Related Posts</h4><ul class="related_post"><li><a href="http://blog.xiongchuan.org/vmware-6-5-not-find-drivers.html" title="VMWare 6.5 未找到驱动器">VMWare 6.5 未找到驱动器</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-apache2-mysql5-php-5-3-server.html" title="CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器">CentOS 5.3搭建Apache2.2.4+Mysql5.1.4+PHP5.3服务器</a></li><li><a href="http://blog.xiongchuan.org/centos-eclipse-gbk-encoding.html" title="CentOS下eclipse支持GBK编码">CentOS下eclipse支持GBK编码</a></li><li><a href="http://blog.xiongchuan.org/dual-system-boot-grub-resolve.html" title="双系统开机进入GRUB的解决办法">双系统开机进入GRUB的解决办法</a></li><li><a href="http://blog.xiongchuan.org/centos-5-3-filezilla-ftp.html" title="CentOS5.3安装Filezilla FTP软件">CentOS5.3安装Filezilla FTP软件</a></li><li><a href="http://blog.xiongchuan.org/linux-change-file-dir-permissions.html" title="Linux修改文件及文件夹权限">Linux修改文件及文件夹权限</a></li><li><a href="http://blog.xiongchuan.org/mysql-error-1045-28000-access-denied-for-user-rootlocalhost.html" title="Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;">Mysql ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@'localhost&#8217;</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.xiongchuan.org/centos-setup-vmware-tools.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

