技术开发 频道

四款主流列式数据库横评

  3.将授权文件拷贝到安装目录,注意这个授权文件的有效期是从申请日开始计时的,不分操作系统平台和数据库软件版本。

  cp /user1/app/*lic /usr/local/infobright-3.5.2-x86_64/

  4.用/etc/init.d/mysqld-ib start命令启动infobright,并用mysql-ib连接数据库。

[root@redflag11012601 app]# /etc/init.d/mysqld-ib start
Starting MySQL.[确定]
[root@redflag11012601 app]# mysql-ib
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.40 build number (revision)=IB_3.5.2_r11794_12019(iee_eval - commercial)

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

mysql>

  5.安装完后可以执行脚本以改变安装选项,比如数据存储位置,这一步是可选的,并且可以在任何时候根据需要关闭数据库执行。注意最后一步删除原有存储位置的数据在3.42版是脚本自动完成的,而3.52版让用户手工执行,更有利于数据的安全。

[root@redflag11012601 bin]# /etc/init.d/mysqld-ib stop

Shutting down MySQL...[确定]
[root@redflag11012601 infobright-3.5.2-x86_64]# ./postconfig.sh
Infobright post configuration
--------------------------------------
Using postconfig, you can:
--------------------------------------
(1) Move existing data directory to other location,
(2) Move existing cache directory to other location,
(3) Configure server socket,
(4) Configure server port,
(5) Relocate datadir path to an existing data directory.

Please type 'y' for option that you want or press ctrl+c for exit.

(1) Do you want to move current datadir [/usr/local/infobright-3.5.2-x86_64/data]? [y/n]:y
Give new datadir path (e.g. /opt/datadirnewpath/data):/user1/infbhtdata
(2) Do you want to move current CacheFolder [/usr/local/infobright-3.5.2-x86_64/cache]? [y/n]:n
(3) Do you want to change current socket [/tmp/mysql-ib.sock]? [y/n]:n
(4) Do you want to change current port [5029]? [y/n]:n
(5) Relocation is disabled when options 1-4 are chosen!
--------------------------------------
New datadir is going to be /user1/infbhtdata
--------------------------------------
Please confirm to proceed? [y/n]:y
Copying /usr/local/infobright-3.5.2-x86_64/data to /user1/infbhtdata ...is done.
You can now remove your old /usr/local/infobright-3.5.2-x86_64/data ...
Done!

  (二) InfiniDB的安装步骤

  1.从http://www.calpont.com/resources/resource-library/category/3-infinidb-enterprise-edition下载对应操作系统的安装包InfiniDB Enterprise Edition Trial Software - 64 bit RPMs (26.17 MB),calpont-infinidb-2.0.3-4.x86_64.rpm.tar.gz。

  2.登录到操作系统,在软件存放目录输入下面的命令解压缩安装包并安装软件。

  tar zxf calpont-infinidb-2.0.3-4.x86_64.rpm.tar.gz

  rpm -ivh cal*rpm

[root@redflag11012601 app]# rpm -ivh cal*rpm
Preparing...                ########################################### [100%]
   1:calpont                ########################################### [ 33%]
Calpont RPM install completed
   2:calpont-mysqld         ########################################### [ 67%]
Calpont RPM install completed
   3:calpont-mysql          ########################################### [100%]
Calpont RPM install completed
2
相关文章