cd /etc/init.d
./mysqld-ib stop
./mysqld-ib start
cd /etc/init.d
./iptables stop
-------------
2.解壓直接安裝
3.進入infobright command line client
4.建立本地許可權使用者
mysql>grant all privileges on *.* to 'admin'@'localhost' identified by '12345678';
mysql>grant all privileges on *.* to 'admin'@'127.0.0.1' identified by '12345678';
mysql>grant all privileges on *.* to 'admin'@'%' identified by '12345678';
5,建立資料庫及表
mysql> create table `dim_ec_browser` (
-> `browser_id` varchar(100) default null,
-> `browser` varchar(100) default null
-> ) engine=brighthouse default charset=utf8
-> ;
6.使用者名稱admin,密碼12345678 埠:5209
7.進入步驟3,選定建立表的資料庫,load data local infile 'e:\dim_ec_browser.txt' into table dim_ec_browser fields terminated by '\t'
[b]資料記得用tab分開:[/b]
14cb9a628d490c77 theworld
40fb033b2b4b3261 camino
451ac36cb977e719 chrome
e1f798868a97669f chrome
c82d301232e3e4b7 maxthon
8.將資料匯出至檔案:
select * from $t10 into outfile '/data/bae/mysql_export/$t10.txt'
fields terminated by '\t' enclosed by '"' lines terminated by '\n';
9.從遠端mysql 備份資料到本地
mysql -utest -ptest -h192.168.32.87 -p3308 -e "select account,sitename,advertisername,incomemoney,createdate from ifm_cps.ad_day_sum where createdate = '20130425'" > /tmp/urfile
infobright安裝與配置
infobright是基於專利技術的列式資料庫,乙個基於mysql開發的開源資料倉儲 data warehouse 軟體,可作為mysql的乙個儲存引擎來使用,select查詢與普通mysql無區別。一 幾大優點 1 高壓縮比率,平均壓縮比可達10 1。經測試,我們的1500萬條697m日誌資料壓縮...
從安裝到使用
從安裝到使用。debian ubuntu apt get install python pip pip installcentos yum install python setuptools easy install pip pip installwindows 參見 在 windows 上安裝服務...
SQLite從安裝到使用
樓主用的是這個 直接放到你指定的位置 我放的地方是e android開發 sqlite 解壓就ok了。完了就這樣,雙擊可以使用。當然也可以設定一下環境變數,在cmd中啟動。第二步 使用 雙擊開啟,介面如下,接著就可以運算元據庫了 當然,我們要的效果不是這樣,而是在eclipse中用 建立乙個test...