i am trying to connect to mysql database using java. I have done connecting to microsoft access before. and i modified my code to connect to mysql server locally.
i think the problem is I don't really understand where my mysql database is. anybody may point out the problem would be great. thanks very much.
DataHolder(Boolean getAll)
{
String url = "jdbc:mysql://http://localhost/phpmyadmin/index.php?db=employees";
String username = "root";
String password = "root";
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = DriverManager.getConnection(url, username, password );
}