<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[Mysql问题：Cant start server : Bind on unix socket: Permission denied]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 26 Mar 2008 10:09:44 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	【URL：来源】http://bbs.linuxpk.com/thread-9632-1-1.html<br/>我们如何查看错误信息呢？在哪里查看呢？应该到/usr/local/mysql/var目录中去找一个带有.err后缀的文件；<br/>[root@bugkill var]# cd /usr/local/myql/var<br/>[root@bugkill var]# more *.err<br/><br/>可能会出现存在下面的错误信息：<br/><br/>031203 14:49:10 mysqld started<br/>031203 14:49:10 Can't start server : Bind on unix socket: Permission denied<br/>031203 14:49:10 Do you already have another mysqld server running on socket: /tmp/mysql.sock ?<br/>031203 14:49:10 Aborting<br/><br/>031203 14:49:10 /usr/local/mysql/libexec/mysqld: Shutdown Complete<br/><br/>031203 14:49:10 mysqld ended<br/><br/>其实这是权限方面的事，我们把权限设置一下就OK了。我们要设置的权限是/usr/local/mysql/var的目录。要设置为777。<br/><br/>方法是：<br/>[root@bugkill mysql-4.1.9]# chmod 755 /usr/local/mysql/var<br/>另外我们要用beinan这个用户来启动mysqld服务器，当然也得改变一下 /usr/local/mysql/var的属性<br/><br/>[root@bugkill mysql-4.1.9]# chown -R bugkill:bugkill /usr/local/mysql/var<br/><br/>[root@bugkill mysql-4.1.9]# su bugkill<br/><br/>How do I fix the following error SQL/DB Error errcode 13 Can't create/write to file?<br/>Problem: The MySQL variable tmpdir is set to a directory that cannot be written to when using PHP to access MySQL.<br/><br/>To verify this, enter MySQL at the command line and type show variables;<br/><br/>You'll get a long list and one of them will read: tmpdir = /somedir/ (whatever your setting is.)<br/><br/>Solution: Alter the tmpdir variable to point to a writable directory.<br/><br/>Steps:<br/><br/><br/>Find the my.cnf file. On *nix systems this is usually in /etc/.<br/>Once found, open this in a simple text editor and find the [mysqld] section.<br/>Under this section, find the tmpdir line. If this line is commented (has a # at the start), delete the # and edit the line so that it reads: tmpdir = /writable/dir where /writable/dir is a directory to which you can write. Some use /tmp, or you might also try /home//.<br/>Save the file.<br/>Shutdown MySQL by typing mysqlshutdown -u -p shutdown.<br/>Start MySQL by going to the MySQL directory and typing ./bin/safe_mysqld &. Usually the MySQL directory is in /usr/local or sometimes in /usr/ on Linux systems.<br/><br/>If none of this make sense and you have someone to administrate your system for you, show the above to them and they should be able to figure it out.<br/><br/>原文：<br/><br/>打开：/etc/my.cnf<br/><br/>tmpdir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= /usr/local/mysql/var/tmp 去掉#号<br/>socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= /usr/local/mysql/var/mysql.sock<br/>指向的要有写权限，restart mysql OK！然后再重启mysql服务器。<br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Mysql问题：Cant start server : Bind on unix socket: Permission denied]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>