Changes between Version 3 and Version 4 of NCHCCloudCourse100928_MYSQL


Ignore:
Timestamp:
Sep 29, 2010, 9:16:15 AM (14 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100928_MYSQL

    v3 v4  
    99[[PageOutline]]
    1010
     11= 說明 =
     12
    1113 * 需先安裝 hadoop 0.20 , apache2 , MySQL 5 server & client
    1214
     15 * MySQL 內,先建立一個school 的資料庫,內含 teacher 的table ,並新增一些資料,如下:
    1316[[Image(wiki:NCHCCloudCourse100928_MYSQL:pd1.png)]]
    1417
     18= 程式碼 =
    1519
    1620 = DBAccess.java =
     
    5054                    Class.forName("com.mysql.jdbc.Driver");
    5155                        DBConfiguration.configureDB(conf, "com.mysql.jdbc.Driver",
    52                                         "jdbc:mysql://localhost/school", "waue", "wauenchc");
     56                                        "jdbc:mysql://localhost/school", "user", "xxxxxxxx");
    5357                        conf.setOutputKeyClass(LongWritable.class);
    5458                        conf.setOutputValueClass(Text.class);