更多Hive相关信息见 http://www.linuxidc.com/search.aspx?Where=Nkey&Keyword=Hive
1.下载MySQL
1.
2. 解压
1.
3.安装
1.
2.
3.
4.配置文件
在/etc目录下,添加my.cnf
安装好mysql后,在/usr/local/mysql/share/mysql目录下,会有my-huge.cnf,
1.
如果你的内存≤64M,则复制/usr/local/share/mysql/my-small.cnf为/etc/my.cnf
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
如果内存是128M,则复制/usr/local/share/mysql/my-medium.cnf为/etc/my.cnf
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
如果内存是512M,则复制/usr/local/share/mysql/my-large.cnf为/etc/my.cnf
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
如果内存是1-2G,www.linuxidc.com则复制/usr/local/share/mysql/my-huge.cnf为/etc/my.cnf
# This is for a large system with memory of 1G-2G where the system runs mainly
# MySQL.
5. 生成mysql用户数据库和表文件
1.
会自动在localstatedir定义的路径生成文件
6.添加帐号
1.
2.
7.修改权限
1.
2.
8.启动mysql
1.
9.添加到系统的启动目录
1.
1.
2.
3.
10.运行客户端
1.
启动成功
查询数据库
mysql> show databases;
+--------------------+
| Database
+--------------------+
| information_schema |
| mysql
| test
+--------------------+
3 rows in set (0.01 sec)
