日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術(shù)文章
文章詳情頁

MySQL infobright的安裝步驟

瀏覽:35日期:2023-10-04 08:25:35

整個(gè)安裝過程過了一遍,感覺跟MySQL的安裝差不太多。步驟如下:

1、使用'rpm -ivh 安裝包'命令來安裝一下rpm的包,如下:

[root@tk01-dba-mysql dba_mysql]# rpm -ivh infobright-4.0.7-0-x86_64-ice.rpm --prefix=/usr/localPreparing... ################################# [100%]Installing infobright 4.0.7-0 (x86_64)The installer will generate /tmp/ib4.0.7-0-install.log install trace log.Updating / installing... 1:infobright-4.0.7-0################################# [100%]Creating/Updating datadir and cachedirCreating user mysql and group mysqlInstalling default databasesInstalling MySQL system tables...OKFilling help tables...OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following commands:/usr/local/infobright-4.0.7-x86_64/bin/mysqladmin -u root password ’new-password’/usr/local/infobright-4.0.7-x86_64/bin/mysqladmin -u root -h tk01-dba-mysql-7-197 password ’new-password’Alternatively you can run:/usr/local/infobright-4.0.7-x86_64/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:cd /usr/local/infobright-4.0.7-x86_64 ; /usr/local/infobright-4.0.7-x86_64/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.plcd /usr/local/infobright-4.0.7-x86_64/mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/local/infobright-4.0.7-x86_64/scripts/mysqlbug script!The latest information about MySQL is available at http://www.mysql.com/Support MySQL by buying support/licenses from http://shop.mysql.com/System Physical memory: 15866(MB)Infobright optimal ServerMainHeapSize is set to 6000(MB)Infobright optimal LoaderMainHeapSize is set to 800(MB)Infobright server installed into folder /usr/local/infobrightInstallation log file /tmp/ib4.0.7-0-install.log--------------------------------------To activate infobright server, please run ./postconfig.sh script from /usr/local/infobright-4.0.7-x86_64.Example command: cd /usr/local/infobright-4.0.7-x86_64; ./postconfig.sh

我這里是將文件解壓到了/usr/local/目錄下面,如果有其他目錄,則可以使用其他目錄進(jìn)行解壓,解壓后的文件如下:

[root@tk01-dba-mysql local]# lltotal 54932drwxr-xr-x. 2 root root 20 Oct 11 11:45 bindrwxr-xr-x 8 root root 297 Sep 27 09:10 cma_tcollectordrwxr-xr-x. 2 root root 6 Apr 11 2018 etcdrwxr-xr-x. 2 root root 6 Apr 11 2018 gamesdrwxr-xr-x. 2 root root 6 Apr 11 2018 includelrwxrwxrwx 1 root root 34 Oct 15 21:42 infobright -> /usr/local/infobright-4.0.7-x86_64-rw-r--r-- 1 root root 56249223 Oct 15 21:30 infobright-4.0.7-0-x86_64-ice.rpmdrwxr-xr-x 11 root root 252 Oct 15 21:42 infobright-4.0.7-x86_642、根據(jù)最后一行提示,激活infobright server,運(yùn)行腳本./postconfig.sh ,如下:

[root@tk01-dba-mysql infobright]# ./postconfig.sh Infobright post configuration--------------------------------------Infobright server activated.--------------------------------------Register your copy of ICE and receive a free copy of the User Manual (a $50 value) as well as a copy of the Bloor Research Spotlight Report 'What’s Cool About Columns' which explains the differences and benefits of a columnar versus row database.Registration will require opening an HTTP connection to Infobright, do you wish to register now? [Y/N]: nRegister now http://www.infobright.org/Downloads/ICE/.

第一次運(yùn)行的時(shí)候,會(huì)提醒是否注冊(cè),選擇N,不注冊(cè),此時(shí)再次運(yùn)行這個(gè)腳本:

[root@tk01-dba-mysql infobright]# ./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.Current configuration: --------------------------------------Current config file: [/etc/my-ib.cnf]Current brighthouse.ini file: [/usr/local/infobright-4.0.7-x86_64/data/brighthouse.ini]Current datadir: [/usr/local/infobright-4.0.7-x86_64/data]Current CacheFolder in brighthouse.ini file: [/usr/local/infobright-4.0.7-x86_64/cache]Current socket: [/tmp/mysql-ib.sock] Current port: [5029]--------------------------------------(1) Do you want to copy current datadir [/usr/local/infobright-4.0.7-x86_64/data] to a new location? [y/n]:yGive new datadir path (e.g. /opt/datadirnewpath/data):/data/infobright_5029/data(2) Option to change CacheFolder is disabled when option 1 is chosen!(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!--------------------------------------Datadir(/usr/local/infobright-4.0.7-x86_64/data) is going to be copied to /data/infobright_5029/data--------------------------------------Please confirm to proceed? [y/n]:yCopying /usr/local/infobright-4.0.7-x86_64/data to /data/infobright_5029/data ...is done.You can now remove/backup your old /usr/local/infobright-4.0.7-x86_64/data ...Done!

此時(shí)安裝包會(huì)提示是否修改相關(guān)的目錄,按照自己的需求去修改,我這里只是簡(jiǎn)單的改了下data盤的目錄,其他的選項(xiàng)都選擇的是N,這樣最終有一條提示:

Datadir(/usr/local/infobright-4.0.7-x86_64/data) is going to be copied to /data/infobright_5029/data

一路yes,就安裝完畢了。

3、查看data文件。此時(shí)進(jìn)入剛才設(shè)定的data目錄,/data/infobright_5029/data里面,查看初始化好的文件。

[root@tk01-dba-mysql data]# lltotal 16-rw-rw---- 1 mysql mysql 0 Oct 15 21:42 bh.err-rw-r--r-- 1 mysql mysql 1898 Oct 15 21:42 brighthouse.ini-rw-r--r-- 1 mysql mysql 8 Oct 15 21:42 ib_data_versiondrwxr-xr-x 2 mysql mysql 4096 Oct 15 21:42 mysqldrwxr-xr-x 2 mysql mysql 4096 Oct 15 21:42 sys_infobrightdrwxr-xr-x 2 mysql mysql 6 Oct 15 21:42 test4、啟動(dòng)服務(wù)。安裝完軟件之后,使用自帶的工具/etc/init.d/mysqld-ib啟動(dòng)服務(wù),啟動(dòng)完之后可以查看相關(guān)進(jìn)程,啟動(dòng)方法和進(jìn)程查看方法如下:

[root@tk01-dba-mysql infobright_5029]# /etc/init.d/mysqld-ib startStarting MySQL. SUCCESS! [root@tk01-dba-mysql-7-195 infobright_5029]# ps -ef|grep 5029root 78369 1 0 10:34 pts/1 00:00:00 sudo -u mysql /usr/local/infobright-4.0.7-x86_64/bin/mysqld_safe --defaults-file=/etc/my-ib.cnf --log-queries-not-using-indexes --user=mysql --pid-file=/data/infobright_5029/data/tk01-dba-mysql-7-195.pidmysql 78372 78369 0 10:34 pts/1 00:00:00 /bin/sh /usr/local/infobright-4.0.7-x86_64/bin/mysqld_safe --defaults-file=/etc/my-ib.cnf --log-queries-not-using-indexes --user=mysql --pid-file=/data/infobright_5029/data/tk01-dba-mysql-7-195.pidmysql 78507 78372 0 10:34 pts/1 00:00:00 /usr/local/infobright-4.0.7-x86_64/bin/mysqld --defaults-file=/etc/my-ib.cnf --basedir=/usr/local/infobright-4.0.7-x86_64 --datadir=/data/infobright_5029/data --log-queries-not-using-indexes --log-error=/data/infobright_5029/data/bh.err --pid-file=/data/infobright_5029/data/tk01-dba-mysql-7-195.pid --socket=/tmp/mysql-ib.sock --port=5029root 78570 68493 0 10:35 pts/1 00:00:00 grep --color=auto 5029[root@tk01-dba-mysql-7-195 infobright_5029]# 5、創(chuàng)建root用戶的密碼,這一步和mysql很像,使用/usr/local/infobright/bin/mysqladmin創(chuàng)建密碼,方法如下:

[root@tk01-dba-mysql bin]# ./mysqladmin -uroot password ’123456’Warning: ./mysqladmin: unknown variable ’loose-local-infile=1’6、連接數(shù)據(jù)庫,連接方法:

[root@tk01-dba-mysql bin]# mysql-ib -uroot -p123456Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 2Server version: 5.1.40 build number (revision)=IB_4.0.7_r16961_17249(ice) (static)Type ’help;’ or ’h’ for help. Type ’c’ to clear the current input statement.mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || BH_RSI_Repository || mysql || sys_infobright || test|+--------------------+5 rows in set (0.00 sec)mysql> show engines;+-------------+---------+-----------------------------------------------------------+--------------+------+------------+| Engine | Support | Comment | Transactions | XA | Savepoints |+-------------+---------+-----------------------------------------------------------+--------------+------+------------+| BRIGHTHOUSE | DEFAULT | Brighthouse storage engine| YES | NO | NO || MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO || CSV | YES | CSV storage engine | NO | NO | NO || MyISAM | YES | Default engine as of MySQL 3.23 with great performance | NO | NO | NO || MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |+-------------+---------+-----------------------------------------------------------+--------------+------+------------+5 rows in set (0.00 sec)

如果不設(shè)置進(jìn)入infobright的用戶名和密碼,則可以直接使用命令mysql-ib進(jìn)入上述界面。可以看到,默認(rèn)的存儲(chǔ)引擎是brighthouse。到這里,infobright的安裝過程算是全部完成了。

7、導(dǎo)入數(shù)據(jù)。

社區(qū)版的目前只能通過load data的方法進(jìn)行數(shù)據(jù)導(dǎo)入,語法如下:

LOAD DATA [LOW_PRIORITY| CONCURRENT] [LOCAL] INFILE ’file_name.txt’ [REPLACE | IGNORE] INTO TABLE tbl_name [FIELDS [TERMINATED BY ’string’] [[OPTIONALLY] ENCLOSED BY ’char’] [ESCAPED BY ’char’ ] ] [LINES [STARTING BY ’string’] [TERMINATED BY ’string’] ] [IGNORE number LINES] [(col_name_or_user_var,...)] [SET col_name = expr,...)]

其中有很多關(guān)鍵字信息,這里解釋一些重要的:

LOW_PRIORITY關(guān)鍵字

如果load data語句使用了LOW_PRIORITY關(guān)鍵字,則在碰到其他會(huì)話操作相同表時(shí),則會(huì)延遲執(zhí)行LOAD DATA語句,直到其他會(huì)話操作表結(jié)束為止。

replace和ignore關(guān)鍵字

控制對(duì)現(xiàn)有的唯一鍵記錄的重復(fù)的處理。如果你指定replace,新行將代替有相同的唯一鍵值的現(xiàn)有行。如果你指定ignore,跳過有唯一鍵的現(xiàn)有行的重復(fù)行的輸入。

fields關(guān)鍵字

指定了文件字段的分割格式:

terminated by關(guān)鍵字

以什么字符作為分隔符;

enclosed by

字段括起字符;

lines

指定了每條記錄的分隔符默認(rèn)為’n’即為換行符;

更多信息,請(qǐng)參考官方文檔。

現(xiàn)在我們生成一個(gè)文本,然后寫入數(shù)據(jù):

mysql> use test;Database changedmysql> show tables;+----------------+| Tables_in_test |+----------------+| test |+----------------+1 row in set (0.00 sec)mysql> load data infile ’/tmp/a.txt’ ignore into table test character set utf8 fields terminated by ’ ’ lines terminated by ’n’; Query OK, 4 rows affected (0.04 sec)Records: 4 Deleted: 0 Skipped: 0 Warnings: 0mysql> system cat /tmp/a.txt1 aaa2 bbb3 ccc4 dddmysql> select * from test;+------+-------+| id | name |+------+-------+| 1 | aaa || 2 | bbb || 3 | ccc || 4 | ddd |+------+-------+4 rows in set (0.00 sec)

最終,所有的數(shù)據(jù)都導(dǎo)入了。大家可以嘗試用這種方法導(dǎo)入大量的數(shù)據(jù),然后對(duì)infobright的查詢性能進(jìn)行評(píng)估。

以上就是MySQL infobright的安裝步驟的詳細(xì)內(nèi)容,更多關(guān)于MySQL infobright的安裝的資料請(qǐng)關(guān)注好吧啦網(wǎng)其它相關(guān)文章!

標(biāo)簽: MySQL 數(shù)據(jù)庫
相關(guān)文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
日韩国产欧美三级| 国产精品伊人| 亚洲色图网站| 丝袜美腿亚洲一区二区图片| 精品一区二区三区中文字幕 | 999在线观看精品免费不卡网站| 亚洲三区欧美一区国产二区| 亚洲aa在线| 国产福利一区二区精品秒拍| 精品中国亚洲| 欧美成人基地 | 国产中文字幕一区二区三区| 在线 亚洲欧美在线综合一区| 日韩av在线播放中文字幕| 日本欧美久久久久免费播放网| 欧美三级第一页| 亚洲永久av| 国产模特精品视频久久久久| 日本一区二区中文字幕| 欧美成人aaa| 亚洲三级精品| 日本少妇一区二区| 国产a亚洲精品| 亚洲高清不卡| 国产调教精品| 亚洲一级黄色| 伊人久久大香伊蕉在人线观看热v| 亚洲资源网站| 国产高清不卡| 丝袜国产日韩另类美女| 日韩欧美中文字幕电影 | 高清日韩中文字幕| 久久xxxx| 日韩在线免费| 国产伦精品一区二区三区视频 | 91九色精品国产一区二区| 蜜桃av一区二区在线观看| 日韩av专区| 日韩毛片网站| 欧美日韩第一| 成人日韩在线观看| 精品一二三区| 欧美黄页在线免费观看| 中文字幕av一区二区三区人| 特黄特色欧美大片| 国产精品欧美一区二区三区不卡| 91一区二区| 国产麻豆一区二区三区| 美女久久一区| 婷婷成人基地| 美女久久99| 欧美日本不卡高清| 亚洲资源在线| 蜜臀av国产精品久久久久| 国产一区日韩一区| 日韩在线中文| 久久久精品国产**网站| 欧美日韩一区二区三区不卡视频| 日本综合精品一区| 青青草精品视频| 91亚洲精品在看在线观看高清| 麻豆亚洲精品| 免费日韩av| 亚洲天堂日韩在线| 亚洲精品成人一区| 免费久久99精品国产自在现线| 欧美日韩精品在线一区| 国际精品欧美精品| 97精品国产福利一区二区三区| 久久久久久夜| 久久精品不卡| 国产精品人人爽人人做我的可爱| 欧美手机在线| 蜜桃久久av一区| 国产欧美在线| 日本不良网站在线观看| 九九综合在线| 久久青草久久| 欧美日韩精品一本二本三本| 亚洲欧美日韩一区在线观看| 午夜一区在线| 国产精品自在| 激情欧美国产欧美| 亚洲v天堂v手机在线| 国产精品一线| 国产精品一区二区三区av| 伊伊综合在线| 高清不卡一区| 夜夜嗨av一区二区三区网站四季av| 日本aⅴ精品一区二区三区| 精品国产一区二| 99热精品在线观看| 精品少妇av| 免费在线观看成人| 国产精品久久观看| 91精品成人| 免费在线欧美黄色| 99国产精品视频免费观看一公开| 一区福利视频| 7m精品国产导航在线| 91精品国产成人观看| 日韩av资源网| 欧美成人基地| 精品一区不卡| 久久精品av麻豆的观看方式| 亚洲综合精品| 成人午夜网址| 免费观看在线综合| 亚洲天堂黄色| 天堂va蜜桃一区二区三区| 首页亚洲欧美制服丝腿| 成人国产精品久久| 日韩毛片一区| 日韩中文字幕91| 亚洲成人不卡| 青青草国产成人99久久| 蜜桃91丨九色丨蝌蚪91桃色| 免费一级欧美在线观看视频| 视频一区免费在线观看| 亚洲手机在线| 99精品国产一区二区三区| 精品国产一区二| 国产精品亚洲四区在线观看| 亚洲开心激情| 一区二区国产在线| 婷婷精品进入| 香蕉人人精品| 精品一区三区| 激情欧美日韩一区| 日韩欧美一区免费| 精品丝袜在线| 影视先锋久久| 国产精品嫩草99av在线| 欧美va天堂在线| 91精品国产调教在线观看| 欧美日韩中文一区二区| 四虎成人av| 日韩欧美午夜| 亚洲视频综合| 蜜臀91精品一区二区三区| 亚洲主播在线| 999视频精品| 国产视频一区在线观看一区免费| 亚洲高清成人| 电影亚洲精品噜噜在线观看| 免费一级欧美片在线观看网站| 久久伊人久久| 亚洲a一区二区三区| 日韩视频免费| 久久黄色影视| 亚洲大全视频| 亚洲女同一区| 日本va欧美va瓶| 国产精品乱战久久久| 亚洲美女久久精品| 激情综合激情| 亚洲精品在线二区| 欧美黄色精品| 在线成人直播| 精品亚洲精品| 美女国产一区| 国产精品videosex极品| 91精品婷婷色在线观看| 日韩视频二区| 91大神在线观看线路一区| 日韩在线网址| 六月婷婷一区| 国产精品2023| 欧美日韩第一| 欧美日韩一区二区高清| 亚洲人成在线网站| 日韩激情av在线| 日韩视频中文| 欧美日中文字幕| 精品一区不卡| 欧美日韩一区自拍| 99久久久久国产精品| 国产精品久久久久77777丨| 欧美日韩精品一本二本三本| 国产不卡一区| 鲁大师精品99久久久| 欧美自拍一区| 视频一区视频二区在线观看| 久久精品不卡| 久久精品av| 欧美国产偷国产精品三区| 天堂va欧美ⅴa亚洲va一国产| 欧美久久精品一级c片| 视频二区不卡| 日本在线精品| 国产传媒在线| 中文字幕人成乱码在线观看| 久久亚洲人体| 日韩av二区| 日韩欧美少妇| 伊人久久亚洲热| 亚洲深夜av| 综合一区二区三区| 日韩精品第二页| 久久国产人妖系列|