Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.mysql.fabric.jdbc.FabricMySQLDriver;
- import java.sql.Connection;
- import java.sql.Driver;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- /**
- * Created by stas on 3/29/2017.
- */
- public class Main {
- public static final String url = "jdbc:mysql://localhost:3036/";
- public static void main(String[] args) {
- Connection connection;
- try {
- Driver driver = new FabricMySQLDriver();
- DriverManager.registerDriver(driver);
- DriverManager.getConnection(url);
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement