Changes between Version 3 and Version 4 of jazz/13-12-21
- Timestamp:
- Dec 21, 2013, 2:33:09 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/13-12-21
v3 v4 3 3 == Sqoop == 4 4 5 * 6 {{{ 7 for ((i=1;i<=30;i++)); do printf "CREATE DATABASE user%02d;\n" $i; done > add_user_db.sql 8 mysql -h 主機名稱 -u root -p < add_user_db.sql 9 for ((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 10 echo "FLUSH PRIVILEGES;" >> add_user.sql 11 mysql -h 主機名稱 -u root -p < add_user.sql 12 }}} 5 13 * 建立 MySQL 測試資料庫 6 14 {{{