I searched the internet for a while now and no one seems to using Eclipse so my local Java application can access, use and manipulate the database server? I have already tried EasyPHP using JDBC connection establishment, however, the connection was never successfully established (yet). I do not want any MySQL webspace or Apache/XAMPP software, simply a local MySQL server to work with in Eclipse.
Establishing the connection (just as side information, everything fine here):
public static Connection getConnection() throws Exception{
try{
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/database";
String username = framework.getUsername();
String password = framework.getPassword();
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, username, password);
framework.showMessage("The database connection has been successfully established.");
return conn;
}catch(Exception e){
framework.showException(e);
return null;
}
}
Any suggestions?