<?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; 数据库</title>
	<atom:link href="http://www.gagahappy.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gagahappy.com</link>
	<description>Life is what? Get busy living or get busy dying</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:22:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理</title>
		<link>http://www.gagahappy.com/ubuntu-intall-mysql-fatal-error-could-not-find-mysqld/</link>
		<comments>http://www.gagahappy.com/ubuntu-intall-mysql-fatal-error-could-not-find-mysqld/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 07:20:47 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[程序开发]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=3922</guid>
		<description><![CDATA[错误信息: #./bin/mysql_install_db –user=mysql FATAL ERROR: Could not find mysqld The following directories were searched: /usr/libexec /usr/sbin /usr/bin If you compiled from source, you need to run ‘make install’to copy the software into the correct location ready for operation. If you are using a binary release, you must either be at the top of the level [...]]]></description>
			<content:encoded><![CDATA[<p>错误信息:<br />
#./bin/mysql_install_db –user=mysql</p>
<p>FATAL ERROR: Could not find mysqld</p>
<p>The following directories were searched:<br />
<span id="more-3922"></span><br />
/usr/libexec<br />
/usr/sbin<br />
/usr/bin</p>
<p>If you compiled from source, you need to run ‘make install’to copy the software into the correct location ready for operation.</p>
<p>If you are using a binary release, you must either be at the top of the level of the extracted archivem or pass the –basedir option pointing to that location.</p>
<p>解决办法：<br />
scripts/mysql_install_db &#8211;user=mysql &#8211;basedir=/usr/local/mysql<br />
（这里mysql是所使用的用户名，basedir是mysql的安装目录）</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/mysql-select-strange-syntax/' rel='bookmark' title='mysql select 蹩脚的语法'>mysql select 蹩脚的语法</a></li>
<li><a href='http://www.gagahappy.com/phpmyadmin-need-a-phrase-password/' rel='bookmark' title='phpMyAdmin 配置文件现在需要一个短语密码'>phpMyAdmin 配置文件现在需要一个短语密码</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/ubuntu-intall-mysql-fatal-error-could-not-find-mysqld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 编译安装选择配置文件my.cnf</title>
		<link>http://www.gagahappy.com/mysql-select-my-cnf-how-to/</link>
		<comments>http://www.gagahappy.com/mysql-select-my-cnf-how-to/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 07:21:03 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=3924</guid>
		<description><![CDATA[mysql 在编译安装初始化数据库时需要读取my.cnf文件，默认读取的位置是/etc/mysql，所以如果你把my.cnf文件copy到/etc/下的话，mysql读取的是/etc/mysql下的my.cnf，而不是/etc/my.cnf。如果想要读取my.cnf，请删除/etc/mysql文件夹。 您可能感兴趣的文章 mysql不能启动 Manager of pid-file quit without updating file. rails3.0 安装mysql2 失败，发生lmysqlclient 错误 mysql 横向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL 导入慢的解决方法 MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>mysql 在编译安装初始化数据库时需要读取my.cnf文件，默认读取的位置是/etc/mysql，所以如果你把my.cnf文件copy到/etc/下的话，mysql读取的是/etc/mysql下的my.cnf，而不是/etc/my.cnf。如果想要读取my.cnf，请删除/etc/mysql文件夹。</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysqldump-import-slow/' rel='bookmark' title='MySQL 导入慢的解决方法'>MySQL 导入慢的解决方法</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/mysql-select-my-cnf-how-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql不能启动 Manager of pid-file quit without updating file.</title>
		<link>http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/</link>
		<comments>http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 04:34:10 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=3775</guid>
		<description><![CDATA[启动mysql失败，提示Manager of pid-file quit without updating file.错误。从网上直接搜索错误信息，感觉出错原因及解决方案都不适用于本机的情况。 本着出错要查出其原因的原则，查看了mysql的出错日志（出错日志所在路径，请根据您自己机子的实际情况查找），发现错误信息：File &#8216;./mysql-bin.index&#8217; not found (Errcode: 13)，查看数据库文件，mysql-bin.index确实存在。 查看数据库文件的权限，发现全都变成了 drwx&#8212;&#8212; 2 1001 1001。突然想起之前重建过mysql用户，造成数据库文件的权限用户信息丢失。重新授权即可。 sudo chown -R mysql var/ sudo chgrp -R mysql var/ 再次启动mysql，成功！ 您可能感兴趣的文章 rails3.0 安装mysql2 失败，发生lmysqlclient 错误 mysql 横向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL 导入慢的解决方法 MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf ubuntu 更改mysql默认引擎为Innodb mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>启动mysql失败，提示Manager of pid-file quit without updating file.错误。从网上直接搜索错误信息，感觉出错原因及解决方案都不适用于本机的情况。</p>
<p>本着出错要查出其原因的原则，查看了mysql的出错日志（出错日志所在路径，请根据您自己机子的实际情况查找），发现错误信息：File &#8216;./mysql-bin.index&#8217; not found (Errcode: 13)，查看数据库文件，mysql-bin.index确实存在。</p>
<p>查看数据库文件的权限，发现全都变成了 drwx&#8212;&#8212; 2  1001 1001。突然想起之前重建过mysql用户，造成数据库文件的权限用户信息丢失。重新授权即可。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span>  mysql var<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chgrp</span> <span style="color: #660033;">-R</span>  mysql var<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>再次启动mysql，成功！</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysqldump-import-slow/' rel='bookmark' title='MySQL 导入慢的解决方法'>MySQL 导入慢的解决方法</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/ubuntu-mysql-engineinnodb/' rel='bookmark' title='ubuntu 更改mysql默认引擎为Innodb'>ubuntu 更改mysql默认引擎为Innodb</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin 配置文件现在需要一个短语密码</title>
		<link>http://www.gagahappy.com/phpmyadmin-need-a-phrase-password/</link>
		<comments>http://www.gagahappy.com/phpmyadmin-need-a-phrase-password/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 02:27:14 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[程序开发]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=3091</guid>
		<description><![CDATA[上传安装phpMyAdmin后，出现”配置文件现在需要一个短语密码“的错误提示，上网查找，解决方法如下 修改phpmyadmin/libraries/config.default.php中的$cfg['blowfish_secret']的值为任意字符串 /** * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If * at least one server configuration uses 'cookie' auth_type, enter here a * pass phrase that will be used by blowfish. The maximum length seems to be 46 * characters. * * @global string $cfg['blowfish_secret'] */ $cfg&#91;'blowfish_secret'&#93; = 'yourpassword'; 您可能感兴趣的文章 [...]]]></description>
			<content:encoded><![CDATA[<p>上传安装phpMyAdmin后，出现”配置文件现在需要一个短语密码“的错误提示，上网查找，解决方法如下</p>
<p>修改phpmyadmin/libraries/config.default.php中的$cfg['blowfish_secret']的值为任意字符串</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
 * at least one server configuration uses 'cookie' auth_type, enter here a
 * pass phrase that will be used by blowfish. The maximum length seems to be 46
 * characters.
 *
 * @global string $cfg['blowfish_secret']
 */</span>
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'blowfish_secret'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'yourpassword'</span><span style="color: #339933;">;</span></pre></div></div>

<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/ubuntu-intall-mysql-fatal-error-could-not-find-mysqld/' rel='bookmark' title='ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理'>ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理</a></li>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/mysql-select-strange-syntax/' rel='bookmark' title='mysql select 蹩脚的语法'>mysql select 蹩脚的语法</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/phpmyadmin-need-a-phrase-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</title>
		<link>http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/</link>
		<comments>http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 14:54:52 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[程序开发]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=2585</guid>
		<description><![CDATA[rails3.0使用的mysql驱动是mysql2，默认安装使用 bundle install，在安装过程中出现如下错误 /opt/ruby/bin/ruby extconf.rb checking for rb_thread_blocking_region()&#8230; no checking for mysql_query() in -lmysqlclient&#8230; no checking for main() in -lm&#8230; yes checking for mysql_query() in -lmysqlclient&#8230; no checking for main() in -lz&#8230; yes checking for mysql_query() in -lmysqlclient&#8230; no checking for main() in -lsocket&#8230; no checking for mysql_query() in -lmysqlclient&#8230; no checking for main() in [...]]]></description>
			<content:encoded><![CDATA[<p>rails3.0使用的mysql驱动是mysql2，默认安装使用 bundle install，在安装过程中出现如下错误</p>
<blockquote><p>
/opt/ruby/bin/ruby extconf.rb<br />
checking for rb_thread_blocking_region()&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lm&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lz&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lsocket&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lnsl&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lmygcc&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.
</p></blockquote>
<p>解决方法<br />
<span id="more-2585"></span><br />
既然要安装 mysql2 驱动，我们完全可以抛开bundle，而使用传统的gem的安装方式，并指明mysql的以下几个选项即可<br />
sudo gem install mysql2 &#8212; &#8211;with-mysql-dir=/opt/mysql &#8211;with-mysql-include=/opt/mysql/include/mysql &#8211;with-mysql-lib=/opt/mysql/lib/mysql/</p>
<p>然后再运行 bundle intall顺利完成其它gem组件的安装。看到网上有的解决方法是安装mysql-deve这个库，其实知道原因后对症下药即可，本博没有安装mysql-deve，仅是指明了mysql的相关选项，即可解决问题。</p>
<p>PS：bundle这个gem真的被集成到rails3.0里了。</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/ubuntu-intall-mysql-fatal-error-could-not-find-mysqld/' rel='bookmark' title='ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理'>ubuntu下安装mysql出现FATAL ERROR: Could not find mysqld的处理</a></li>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/the-different-between-include-and-extend-in-ruby/' rel='bookmark' title='ruby 中 include 与 extend 区别'>ruby 中 include 与 extend 区别</a></li>
<li><a href='http://www.gagahappy.com/mysql-select-strange-syntax/' rel='bookmark' title='mysql select 蹩脚的语法'>mysql select 蹩脚的语法</a></li>
<li><a href='http://www.gagahappy.com/phpmyadmin-need-a-phrase-password/' rel='bookmark' title='phpMyAdmin 配置文件现在需要一个短语密码'>phpMyAdmin 配置文件现在需要一个短语密码</a></li>
<li><a href='http://www.gagahappy.com/ruby-install-rmagick/' rel='bookmark' title='ruby 安装 rmagick'>ruby 安装 rmagick</a></li>
<li><a href='http://www.gagahappy.com/mysql-string-cast-to-number/' rel='bookmark' title='mysql 字符串转换成数字'>mysql 字符串转换成数字</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/rails-2-quick-show/' rel='bookmark' title='rails2.0快速体验'>rails2.0快速体验</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fedora13 编译安装 mysql innodb引擎</title>
		<link>http://www.gagahappy.com/fedora13-mysql-innodb/</link>
		<comments>http://www.gagahappy.com/fedora13-mysql-innodb/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:24:07 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1696</guid>
		<description><![CDATA[fedora13 编译安装 mysql innodb引擎，需要在配置时加入 &#8211;with-plugins=innobase 选项。 您可能感兴趣的文章 mysql不能启动 Manager of pid-file quit without updating file. rails3.0 安装mysql2 失败，发生lmysqlclient 错误 mysql 横向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL 导入慢的解决方法 MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>fedora13 编译安装 mysql innodb引擎，需要在配置时加入 &#8211;with-plugins=innobase 选项。</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysqldump-import-slow/' rel='bookmark' title='MySQL 导入慢的解决方法'>MySQL 导入慢的解决方法</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/fedora13-mysql-innodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 横向扩展性</title>
		<link>http://www.gagahappy.com/mysql-scale-out/</link>
		<comments>http://www.gagahappy.com/mysql-scale-out/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 16:29:13 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1672</guid>
		<description><![CDATA[mysql 横向扩展性的优点 1、成本低，很容易通过低廉的PC Server搭建一个处理能力非常强大的计算集群 2、不太容易遇到瓶颈，因为很容易通过添加主机来增加处理能力 3、单个节点故障对系统整体影响较小 mysql 横向扩展性的缺点 1、处理节点多，造成系统架构整体复杂度提高，应用程度提高 2、集群维护难易程度更高，维护成本更大。 您可能感兴趣的文章 mysql不能启动 Manager of pid-file quit without updating file. rails3.0 安装mysql2 失败，发生lmysqlclient 错误 fedora13 编译安装 mysql innodb引擎 mysql 纵向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>mysql 横向扩展性的优点<br />
1、成本低，很容易通过低廉的PC Server搭建一个处理能力非常强大的计算集群<br />
2、不太容易遇到瓶颈，因为很容易通过添加主机来增加处理能力<br />
3、单个节点故障对系统整体影响较小 </p>
<p>mysql 横向扩展性的缺点<br />
1、处理节点多，造成系统架构整体复杂度提高，应用程度提高<br />
2、集群维护难易程度更高，维护成本更大。</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/fedora13-mysql-innodb/' rel='bookmark' title='fedora13 编译安装 mysql innodb引擎'>fedora13 编译安装 mysql innodb引擎</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-up/' rel='bookmark' title='mysql 纵向扩展性'>mysql 纵向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/mysql-scale-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 纵向扩展性</title>
		<link>http://www.gagahappy.com/mysql-scale-up/</link>
		<comments>http://www.gagahappy.com/mysql-scale-up/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 16:30:28 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1674</guid>
		<description><![CDATA[mysql 纵向扩展性 优点 1、处理节点少，维护相对简单 2、所有数据都集中在一起，应用系统架构简单，开发相对容易。 mysql 纵向扩展性 缺点 1、高端设备成本高，且竞争少，容易受到厂商限制 2、受到硬件设备发展速度的限制，单台主机的处理能力总是有极限的，容易遇到最终无法解决的性能瓶颈 3、设备和数据集中，发生故障后影响较大 您可能感兴趣的文章 mysql不能启动 Manager of pid-file quit without updating file. rails3.0 安装mysql2 失败，发生lmysqlclient 错误 fedora13 编译安装 mysql innodb引擎 mysql 横向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>mysql 纵向扩展性 优点<br />
1、处理节点少，维护相对简单<br />
2、所有数据都集中在一起，应用系统架构简单，开发相对容易。</p>
<p>mysql 纵向扩展性 缺点<br />
1、高端设备成本高，且竞争少，容易受到厂商限制<br />
2、受到硬件设备发展速度的限制，单台主机的处理能力总是有极限的，容易遇到最终无法解决的性能瓶颈<br />
3、设备和数据集中，发生故障后影响较大</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/fedora13-mysql-innodb/' rel='bookmark' title='fedora13 编译安装 mysql innodb引擎'>fedora13 编译安装 mysql innodb引擎</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/mysql-scale-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql 编译安装配置</title>
		<link>http://www.gagahappy.com/mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae/</link>
		<comments>http://www.gagahappy.com/mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 14:32:56 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1703</guid>
		<description><![CDATA[mysql 编译安装配置 ./configure &#8211;prefix=/opt/mysql &#8211;without-debug &#8211;enable-thread-safe-client &#8211;enable-assembler &#8211;enable-profiling &#8211;with-mysqld-ldflags=-all-static &#8211;with-client-ldflags=-all-static &#8211;with-charset=utf8 &#8211;with-extra-charsets=gbk &#8211;with-mysqld-user=mysql &#8211;without-embedded-server &#8211;with-server-suffix=-community &#8211;with-collation=utf8_general_ci &#8211;with-plugins=innobase 您可能感兴趣的文章 mysql不能启动 Manager of pid-file quit without updating file. rails3.0 安装mysql2 失败，发生lmysqlclient 错误 mysql 横向扩展性 MySql用户创建、授权以及删除 MySQL server has gone away MySQL 导入慢的解决方法 MySQL中的mysqldump命令使用详解 ruby与rails版本差异不能连接mysql mysql my.cnf mysql 配置文件]]></description>
			<content:encoded><![CDATA[<p>mysql 编译安装配置<br />
./configure &#8211;prefix=/opt/mysql &#8211;without-debug  &#8211;enable-thread-safe-client &#8211;enable-assembler &#8211;enable-profiling &#8211;with-mysqld-ldflags=-all-static &#8211;with-client-ldflags=-all-static &#8211;with-charset=utf8 &#8211;with-extra-charsets=gbk  &#8211;with-mysqld-user=mysql &#8211;without-embedded-server &#8211;with-server-suffix=-community &#8211;with-collation=utf8_general_ci &#8211;with-plugins=innobase</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysqldump-import-slow/' rel='bookmark' title='MySQL 导入慢的解决方法'>MySQL 导入慢的解决方法</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/ruby-rails-not-conn-mysql/' rel='bookmark' title='ruby与rails版本差异不能连接mysql'>ruby与rails版本差异不能连接mysql</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/mysql-%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>什么是OLTP、什么是OLAP</title>
		<link>http://www.gagahappy.com/oltp-and-olap/</link>
		<comments>http://www.gagahappy.com/oltp-and-olap/#comments</comments>
		<pubDate>Sun, 30 May 2010 15:33:34 +0000</pubDate>
		<dc:creator>moonfox</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.gagahappy.com/?p=1652</guid>
		<description><![CDATA[联机分析处理 (OLAP) 的概念最早是由关系数据库之父E.F.Codd于1993年提出的，他同时提出了关于OLAP的12条准则。OLAP的提出引起了很大的反响，OLAP作为一类产品同联机事务处理 (OLTP) 明显区分开来。 当今的数据处理大致可以分成两大类：联机事务处理OLTP（on-line transaction processing）、联机分析处理OLAP（On-Line Analytical Processing）。OLTP是传统的关系型数据库的主要应用，主要是基本的、日常的事务处理，例如银行交易。OLAP是数据仓库系统的主要应用，支持复杂的分析操作，侧重决策支持，并且提供直观易懂的查询结果。下表列出了OLTP与OLAP之间的比较。 OLTP OLAP 用户 操作人员,低层管理人员 决策人员,高级管理人员 功能 日常操作处理 分析决策 DB 设计 面向应用 面向主题 数据 当前的, 最新的细节的, 二维的分立的 历史的, 聚集的, 多维的集成的, 统一的 存取 读/写数十条记录 读上百万条记录 工作单位 简单的事务 复杂的查询 用户数 上千个 上百个 DB 大小 100MB-GB 100GB-TB OLAP是使分析人员、管理人员或执行人员能够从多角度对信息进行快速、一致、交互地存取,从而获得对数据的更深入了解的一类软件技术。OLAP的目标是 满足决策支持或者满足在多维环境下特定的查询和报表需求,它的技术核心是&#8221;维&#8221;这个概念。 “维”是人们观察客观世界的角度,是一种高层次的类型划分。“维”一般包含着层次关系,这种层次关系有时会相当复杂。通过把一个实体的多项重要的属性定义 为多个维(dimension)，使用户能对不同维上的数据进行比较。因此OLAP也可以说是多维数据分析工具的集合。 维几个基本概念1、维——维是人们观察问题的特定角度，例如：时间维、地理维、产品维。2、维层次——人们在观察数据的某个特定角度(即某个维)还可以存 在细节程度不同的多个描述方面，我们称这多个描述方面为维的层次。例　时间维：日期，月份，季度，年不同层次。3、维成员——维的一个取值成为该维的一个 维成员。　　如果维已经分成了多层次的，则维成员就是不同维层次取值的组合。例如：某公司销售数据在省、市、县，地理维有三个层次，则“山东省潍坊市昌邑 县”就构成地理维的一个维成员。维成员并不一定要在维的每一个层次上都取值，例如：山东省，山东省潍坊市，潍坊市昌邑县都是地理维的维成员。4、多维数据 集——数据立方体或超立方多维数据集是决策支持的支柱，也是OLAP的核心。多维数据集可以用一个多维数组表示。 OLAP的基本多维分析操作有钻取（roll up和drill down）、切片（slice）和切块（dice）、以及旋转（pivot）、drill [...]]]></description>
			<content:encoded><![CDATA[<p>联机分析处理 (OLAP) 的概念最早是由关系数据库之父E.F.Codd于1993年提出的，他同时提出了关于OLAP的12条准则。OLAP的提出引起了很大的反响，OLAP作为一类产品同联机事务处理 (OLTP) 明显区分开来。</p>
<p>当今的数据处理大致可以分成两大类：联机事务处理OLTP（on-line transaction processing）、联机分析处理OLAP（On-Line Analytical Processing）。OLTP是传统的关系型数据库的主要应用，主要是基本的、日常的事务处理，例如银行交易。OLAP是数据仓库系统的主要应用，支持复杂的分析操作，侧重决策支持，并且提供直观易懂的查询结果。下表列出了OLTP与OLAP之间的比较。</p>
<p><span id="more-1652"></span></p>
<h4>
<table border="1" width="97%">
<tbody>
<tr>
<td width="22%"></td>
<td width="41%">OLTP</td>
<td width="37%">OLAP</td>
</tr>
<tr>
<td width="22%">用户</td>
<td width="41%">操作人员,低层管理人员</td>
<td width="37%">决策人员,高级管理人员</td>
</tr>
<tr>
<td width="22%">功能</td>
<td width="41%">日常操作处理</td>
<td width="37%">分析决策</td>
</tr>
<tr>
<td width="22%">DB 设计</td>
<td width="41%">面向应用</td>
<td width="37%">面向主题</td>
</tr>
<tr>
<td width="22%">数据</td>
<td width="41%">当前的, 最新的细节的, 二维的分立的</td>
<td width="37%">历史的, 聚集的, 多维的集成的, 统一的</td>
</tr>
<tr>
<td width="22%">存取</td>
<td width="41%">读/写数十条记录</td>
<td width="37%">读上百万条记录</td>
</tr>
<tr>
<td width="22%">工作单位</td>
<td width="41%">简单的事务</td>
<td width="37%">复杂的查询</td>
</tr>
<tr>
<td width="22%">用户数</td>
<td width="41%">上千个</td>
<td width="37%">上百个</td>
</tr>
<tr>
<td width="22%">DB 大小</td>
<td width="41%">100MB-GB</td>
<td width="37%">100GB-TB</td>
</tr>
</tbody>
</table>
</h4>
<p>OLAP是使分析人员、管理人员或执行人员能够从多角度对信息进行快速、一致、交互地存取,从而获得对数据的更深入了解的一类软件技术。OLAP的目标是 满足决策支持或者满足在多维环境下特定的查询和报表需求,它的技术核心是&#8221;维&#8221;这个概念。</p>
<p>“维”是人们观察客观世界的角度,是一种高层次的类型划分。“维”一般包含着层次关系,这种层次关系有时会相当复杂。通过把一个实体的多项重要的属性定义 为多个维(dimension)，使用户能对不同维上的数据进行比较。因此OLAP也可以说是多维数据分析工具的集合。</p>
<p>维几个基本概念1、维——维是人们观察问题的特定角度，例如：时间维、地理维、产品维。2、维层次——人们在观察数据的某个特定角度(即某个维)还可以存 在细节程度不同的多个描述方面，我们称这多个描述方面为维的层次。例　时间维：日期，月份，季度，年不同层次。3、维成员——维的一个取值成为该维的一个 维成员。　　如果维已经分成了多层次的，则维成员就是不同维层次取值的组合。例如：某公司销售数据在省、市、县，地理维有三个层次，则“山东省潍坊市昌邑 县”就构成地理维的一个维成员。维成员并不一定要在维的每一个层次上都取值，例如：山东省，山东省潍坊市，潍坊市昌邑县都是地理维的维成员。4、多维数据 集——数据立方体或超立方多维数据集是决策支持的支柱，也是OLAP的核心。多维数据集可以用一个多维数组表示。</p>
<p>OLAP的基本多维分析操作有钻取（roll up和drill  down）、切片（slice）和切块（dice）、以及旋转（pivot）、drill across、drill through等。</p>
<p>钻取是改变维的层次，变换分析的粒度。它包括向上钻取（roll up）和向下钻取（drill down）。roll  up是在某一维上将低层次的细节数据概括到高层次的汇总数据，或者减少维数；而drill  down则相反，它从汇总数据深入到细节数据进行观察或增加新维。切片和切块是在一部分维上选定值后，关心度量数据在剩余维上的分布。如果剩余的维只有两个，则 是切片；如果有三个，则是切块。旋转是变换维的方向，即在表格中重新安排维的放置（例如行列互换）。<br />
OLAP有多种实现方法，根据存储数据的方式不同可以分为ROLAP、MOLAP、HOLAP。</p>
<p>ROLAP表示基于关系数据库的OLAP实现（Relational  OLAP）。以关系数据库为核心,以关系型结构进行多维数据的表示和存储。ROLAP将多维数据库的多维结构划分为两类表:一类是事实表,用来存储数据和 维关键字;另一类是维表,即对每个维至少使用一个表来存放维的层次、成员类别等维的描述信息。维表和事实表通过主关键字和外关键字联系在一起,形成了&#8221;星 型模式&#8221;。对于层次复杂的维,为避免冗余数据占用过大的存储空间,可以使用多个表来描述,这种星型模式的扩展称为&#8221;雪花模式&#8221;。</p>
<p>MOLAP表示基于多维数据组织的OLAP实现（Multidimensional  OLAP）。以多维数据组织方式为核心,也就是说,MOLAP使用多维数组存储数据。多维数据在存储中将形成&#8221;立方块（Cube）&#8221;的结构,在MOLAP 中对&#8221;立方块&#8221;的&#8221;旋转&#8221;、&#8221;切块&#8221;、&#8221;切片&#8221;是产生多维数据报表的主要技术。</p>
<p>HOLAP表示基于混合数据组织的OLAP实现（Hybrid OLAP）。如低层是关系型的，高层是多维矩阵型的。这种方式具有更好的灵活性。</p>
<p>还有其他的一些实现OLAP 的方法，如提供一个专用的SQL Server，对某些存储模式（如星型、雪片型）提供对SQL查询的特殊支持。</p>
<p>OLAP工具是针对特定问题的联机数据访问与分析。它通过多维的方式对数据进行分析、查询和报表。维是人们观察数据的特定角度。例如，一个企业在考虑产品 的销售情况时，通常从时间、地区和产品的不同角度来深入观察产品的销售情况。这里的时间、地区和产品就是维。而这些维的不同组合和所考察的度量指标构成的 多维数组则是OLAP分析的基础，可形式化表示为（维1，维2，……，维n，度量指标），如（地区、时间、产品、销售额）。多维分析是指对以多维形式组织 起来的数据采取切片（Slice）、切块（Dice）、钻取（Drill-down和Roll-up）、旋转（Pivot）等各种分析动作，以求剖析数 据，使用户能从多个角度、多侧面地观察数据库中的数据，从而深入理解包含在数据中的信息。</p>
<p>根据综合性数据的组织方式的不同，目前常见的OLAP主要有基于多维数据库的MOLAP及基于关系数据库的ROLAP两种。MOLAP是以多维的方式组织 和存储数据，ROLAP则利用现有的关系数据库技术来模拟多维数据。在数据仓库应用中，OLAP应用一般是数据仓库应用的前端工具，同时OLAP工具还可 以同数据挖掘工具、统计分析工具配合使用，增强决策分析功能。</p>
<p>您可能感兴趣的文章<ol>
<li><a href='http://www.gagahappy.com/mysql-manager-of-pid-file-quit-without-updating-file/' rel='bookmark' title='mysql不能启动 Manager of pid-file quit without updating file.'>mysql不能启动 Manager of pid-file quit without updating file.</a></li>
<li><a href='http://www.gagahappy.com/rails3-0-gem-mysql2-lmysqlclient/' rel='bookmark' title='rails3.0 安装mysql2 失败，发生lmysqlclient 错误'>rails3.0 安装mysql2 失败，发生lmysqlclient 错误</a></li>
<li><a href='http://www.gagahappy.com/fedora13-mysql-innodb/' rel='bookmark' title='fedora13 编译安装 mysql innodb引擎'>fedora13 编译安装 mysql innodb引擎</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-out/' rel='bookmark' title='mysql 横向扩展性'>mysql 横向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-scale-up/' rel='bookmark' title='mysql 纵向扩展性'>mysql 纵向扩展性</a></li>
<li><a href='http://www.gagahappy.com/mysql-create-user/' rel='bookmark' title='MySql用户创建、授权以及删除'>MySql用户创建、授权以及删除</a></li>
<li><a href='http://www.gagahappy.com/mysql-server-has-gone-away/' rel='bookmark' title='MySQL server has gone away'>MySQL server has gone away</a></li>
<li><a href='http://www.gagahappy.com/mysql-mysqldump-01/' rel='bookmark' title='MySQL中的mysqldump命令使用详解'>MySQL中的mysqldump命令使用详解</a></li>
<li><a href='http://www.gagahappy.com/mysql-my-cnf-01/' rel='bookmark' title='mysql my.cnf'>mysql my.cnf</a></li>
<li><a href='http://www.gagahappy.com/mysql-config/' rel='bookmark' title='mysql 配置文件'>mysql 配置文件</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.gagahappy.com/oltp-and-olap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

