infobright 简单的操作

infobright一些最基本的使用和操作:

按照 http://blog.csdn.net/lxpbs8851/article/details/7586552 的安装步骤 安装好infobright之后

就进去建了一个表来实验一下它的性能。


1.登录:

mysql-ib -uroot -p

默认的密码是空 ,这个最好是改下密码 不然用load导入数据的时候回比较的惨。

可以看到 进去的标题头不同了

mysql的是:


Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 115955
Server version: 5.5.13-rel20.4-log Percona Server with XtraDB (GPL), Release rel20.4, Revision 138

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


infobright的是 :

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 73
Server version: 5.1.40 build number (revision)=IB_4.0.6_r16086_16275(ice) (static)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.



2. 创建数据库 ,表

create database report_test;

use report_test;

CREATE TABLE `report_login_log` (
  `create_time` datetime DEFAULT NULL,
  `cell` varchar(32) COLLATE latin1_bin DEFAULT NULL,
  `flag` int(10) DEFAULT NULL
) ENGINE=BRIGHTHOUSE DEFAULT CHARSET=latin1 COLLATE=latin1_bin;


我用存储过程创建了1.4亿条的模拟数据 ,和真实环境的数据差不多

导入到表中.

导入的速度令人感到惊讶:

5分钟之内1.4E行数据全部导入 !!

而同样的数据导入到mysql的表中花了大约1个小时40分钟。

还有count的速度,呵呵:

mysql>select count(1) from report_login_log ;

+-----------+
| count(1)  |
+-----------+
| 140236289 |
+-----------+
1 row in set (0.04 sec)



3.缺陷,由于用的是ICE 这个版本的不支持DML操作,即: delete 、update 、insert

这些操作是不支持的;但是可以create table as select ...

(官网上说IEE是支持的 但是不是免费的)

不能建立索引。


4.基本操作和mysql基本上都是相似的

查看所有的数据库  show databases;

infobright进去之后默认存在的数据库有以下这些,表所使用的存储引擎是BRIGHTHOUSE:

+--------------------+
| Database           |
+--------------------+
| information_schema |
| BH_RSI_Repository  |
| mysql              |
| sys_infobright     |
| test      

使用当前数据  use db_name;

查看当前数据库中的所有表: show tables;

熟悉mysql的人员应该是很清楚的, 操作基本上和mysql的一样。


5.修改密码

/usr/local/infobright-4.0.6-x86_64/bin/mysqladmin -uroot password ‘123456’


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值