Package uk.co.tggl.pluckerpluck.multiinv.mysql

Examples of uk.co.tggl.pluckerpluck.multiinv.mysql.SqlConnector


                        String password = config.getString("sql.password", "password");
                        String url = "jdbc:mysql://" + config.getString("sql.host", "localhost") + ":" + config.getString("sql.port", "3306") + "/"
                                + config.getString("sql.database", "database") + "?autoReconnect=true";
                        Connection connect = DriverManager.getConnection(url, config.getString("sql.username", "username"),
                                config.getString("sql.password", "password"));
                        con = new SqlConnector(connect, config.getString("sql.prefix", "multiinv_"), url, username, password);
                       
                    } catch(SQLException ex) {
                        MultiInv.log.warning("Could not establish connection to the database! User inventories won't be saved!");
                    }
                }
View Full Code Here

TOP

Related Classes of uk.co.tggl.pluckerpluck.multiinv.mysql.SqlConnector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.