Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection conn = null;
- String userName = "root";
- String password = "rnd";
- java.sql.Statement s;
- java.sql.ResultSet rs;
- try {
- DBConnector db = new DBConnector("FEED_ZINGME",userName, password);
- String q = "DROP DATABASE IF EXISTS FEED_ZINGME_"+cDate;
- db.update(q);
- } catch (Exception e) {
- System.err.println("Cannot connect to database server");
- System.out.println(e);
- } finally {
- if (conn != null) {
- try {
- conn.close();
- System.out.println("Database connection terminated");
- } catch (Exception e) { /* ignore close errors */ }
- }
- }
Add Comment
Please, Sign In to add comment