<?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://liluo.org/tags/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://liluo.org</link>
	<description>落就是一道风景线……</description>
	<lastBuildDate>Tue, 09 Aug 2011 11:22:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 中 Mysql 卸载、重装以及编码问题</title>
		<link>http://liluo.org/2010/06/ubuntu-%e4%b8%ad-mysql-%e5%8d%b8%e8%bd%bd%e3%80%81%e9%87%8d%e8%a3%85%e4%bb%a5%e5%8f%8a%e7%bc%96%e7%a0%81%e9%97%ae%e9%a2%98/</link>
		<comments>http://liluo.org/2010/06/ubuntu-%e4%b8%ad-mysql-%e5%8d%b8%e8%bd%bd%e3%80%81%e9%87%8d%e8%a3%85%e4%bb%a5%e5%8f%8a%e7%bc%96%e7%a0%81%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 03:37:38 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=552</guid>
		<description><![CDATA[最近Ubuntu中的Mysql出了点问题，网上找了N久也没找到答案，于是华丽的将它卸载重装。当然，如标题所写，这里还有涉及到编码问题。

1、卸载
当初我安装的时候是用：sudo apt-get install mysql-server mysql-client
于是相应的卸载：sudo aptitude purge mysql-server mysql-client
其实我也有尝试用新立得软件管理器来卸载，再次安装的时候却被跳过设置root密码的步骤，应该是卸载的不完全吧？但是不管怎样我用上面的命令卸载之后重新安装正常。
2、安装Mysql
sudo apt-get install mysql-server mysql-client
是的，依然是原来安装的方式，需要输入root的密码并确认一次。但是当我安装完成之后发现无法使用sudo /etc/init.d/mysql restart来重启以及启动、停止，出现以下提示：
luo@luo-ubuntu:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, [...]]]></description>
		<wfw:commentRss>http://liluo.org/2010/06/ubuntu-%e4%b8%ad-mysql-%e5%8d%b8%e8%bd%bd%e3%80%81%e9%87%8d%e8%a3%85%e4%bb%a5%e5%8f%8a%e7%bc%96%e7%a0%81%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Win+Python2.6+MySQLdb(驱动)安装</title>
		<link>http://liluo.org/2010/04/win-python2-6-mysqldb/</link>
		<comments>http://liluo.org/2010/04/win-python2-6-mysqldb/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 11:01:00 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[MySQLdb]]></category>
		<category><![CDATA[win]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=402</guid>
		<description><![CDATA[在Python中使用MySQL需要安装MySQLdb，但从官方站点 http://sourceforge.net/projects/mysql-python/ 目前只能下载到只持Python2.5版的MySQLdb。这里介绍Windows下安装MySQLdb的方法和常见问题处理。

Python2.6可以从http://www.python.org/download
下载官方的版本安装，也可以http://www.activestate.com/activepython/下载ActivePython安装，后者在windows下使用更加方便。
MySQLdb版本： MySQL-python-1.2.2.win32-py2.6.exe
下载地址：http://home.netimperia.com/files/misc/MySQL-python-1.2.2.win32-py2.6.exe
参见：http://sourceforge.net/forum/forum.php?thread_id=2316047&#38;forum_id=70460
常见问题：
1.ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
D:\Python26&#62;python
Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
&#62;&#62;&#62; import MySQLdb
Traceback (most recent call last):
File “&#60;stdin&#62;”, line 1, in &#60;module&#62;
File “D:\Python26\Lib\site-packages\MySQLdb\__init__.py”, line 19, in &#60;module&#62;
import _mysql
ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
解决方法：下载libmmd.dll(附件)和libguide40.dll(附件)两个dll文件(下载)并复制到python安装目录的Lib\site-packages下。
参见：http://sourceforge.net/forum/message.php?msg_id=5613887
2.ImportError: DLL load failed: 找不到指定的模块。
—————————————————————————————————-
D:\Python26&#62;python
Python 2.6 (r26:66721, Oct  [...]]]></description>
		<wfw:commentRss>http://liluo.org/2010/04/win-python2-6-mysqldb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows+Python2.6+MySQL驱动安装</title>
		<link>http://liluo.org/2010/04/windowspython2-6mysql%e9%a9%b1%e5%8a%a8%e5%ae%89%e8%a3%85/</link>
		<comments>http://liluo.org/2010/04/windowspython2-6mysql%e9%a9%b1%e5%8a%a8%e5%ae%89%e8%a3%85/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:01:35 +0000</pubDate>
		<dc:creator>落落</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://liluo.org/?p=341</guid>
		<description><![CDATA[在Python中使用MySQL需要安装MySQLdb，但从官方站点 http://sourceforge.net/projects/mysql-python/ 目前只能下载到只持Python2.5版的MySQLdb。这里介绍Windows下安装MySQLdb的方法和常见问题处理。]]></description>
		<wfw:commentRss>http://liluo.org/2010/04/windowspython2-6mysql%e9%a9%b1%e5%8a%a8%e5%ae%89%e8%a3%85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

