Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package db;
- public class DB {
- public static String user="root";
- public static String password="";
- public static String protocol="JDBC:mysql:";
- public static String ip="localhost";
- public static String port="3306";
- public static String dbName="videoklub";
- public static String dbDriver="com.mysql.jdbc.Driver";
- public static String connectionString = protocol + "//" + ip + ":" + port + "/" + dbName;
- static {
- try {
- Class.forName(dbDriver);
- } catch (ClassNotFoundException ex) {
- System.err.println(ex);
- }
- }
- }
Add Comment
Please, Sign In to add comment