Changes between Version 3 and Version 4 of jazz/13-12-21


Ignore:
Timestamp:
Dec 21, 2013, 2:33:09 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/13-12-21

    v3 v4  
    33== Sqoop ==
    44
     5 *
     6{{{
     7for ((i=1;i<=30;i++)); do printf "CREATE DATABASE user%02d;\n" $i; done > add_user_db.sql
     8mysql -h 主機名稱 -u root -p < add_user_db.sql
     9for ((i=1;i<=30;i++)); do printf "GRANT SELECT,INSERT,UPDATE ON user%02d.* TO 'user%02d'@'%s' IDENTIFIED BY '密碼';\n" $i $i '%'; done > add_user.sql
     10echo "FLUSH PRIVILEGES;" >> add_user.sql
     11mysql -h 主機名稱 -u root -p < add_user.sql
     12}}}
    513 * 建立 MySQL 測試資料庫
    614{{{