該部署系統中的資料庫部分了,系統使用的是mysql,在linux下。 在mysql中,預設本地用root登入是沒有密碼的,登入之。 執行一個grant語句,如下: grant all on *.* to 'livesky' IDENTIFIED by '123456'; 解釋:建立一個新使用者“livesky”,並且設定密碼為“123456”;把所有庫所有表的全部許可權授權給它;該使用者可以在任意主機上登入過來,假如設定該使用者只能從本地登入這使用如下語句: grant all on
為了實現把部落格中的使用者帳號和密碼匯入FTP資料庫中,以實現直接使用部落格的帳號登陸FTP的功能。我決定在Linux下使用python協助我處理。這篇日誌就是簡單介紹,使用python串連Mysql的方法。一、在Linux下安裝MySQLdb模組使用python串連Mysql的前提,就是需要一個讓python串連到Mysql的介面,這就是MySQLdb模組。MySQLdb功能介紹:MySQL support for Python. MySQL versions 3.2
昨天在Linux下安裝了MySQL,作個筆記.# wget http://mysql.ntu.edu.tw/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz 安裝# tar zxvf mysql-5.0.45.tar.gz# cd mysql-5.0.45# ./configure --prefix=/usr/ali/mysql --enable-thread-safe-client --with-charset=utf8# make# make
Oracle 關閉和開啟歸檔日誌一 設定為歸檔方式1 sql> archive log list; #查看是不是歸檔方式2 sql> alter system set log_archive_start=true scope=spfile; #啟用主動歸檔 sql> alter system set log_archive_dest=''location=/oracle/ora9/oradata/arch'' scope=spfile;
版本說明 Hadoop 1.0.3HBase 0.94.1Hive 0.9.0執行操作hive> select count(*) from tablename;異常提示 Exception in thread "Thread-54" java.lang.RuntimeException: Error while reading from task log url at org.apache.hadoop.
Oracle資料庫下的大資料表做分區以提高資料讀取效率:PLSQL裡操作,直接上代碼:--目的:用表分區轉換大表資料,示範中只是用5000條資料; --建表T create table t(id number,name varchar2(10)); insert into t select rownum+4,'1,2,3,4' from dual connect by rownum<=5000; commit; select count(1) from t ;