This is what happend when i tried to telnet
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
8
5.0.18-MaxBG|_EySrg+?;H:'UV3:fConnection closed by foreign host.
This my example program to connect:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Connect
{
public static void main (String[] args)
{
Connection conn = null;
try
{
Class.forName("com.mysql.jdbc.Driver");
String connection = "jdbc
dbc:mysql://127.0.0.1:3306/webserver?user=root&password=garfield01";
Connection conn = DriverManager.getConnection(connection);
System.out.println ("Database connection established");
}
catch (Exception e)
{
System.err.println ("Cannot connect to database server");
}
finally
{
if (conn != null)
{
try
{
conn.close ();
System.out.println ("Database connection terminated");
}
catch (Exception e) { /* ignore close errors */ }
}
}
}
}
After I get this Error:
Cannot connect to database server:
I don't know how to set the classpath under Suse Linux and when I look I dont have a MySQL Server but I hav the gui tools to MySQL stuff. I been workin on this for about a month and a half, and I am totally stumped as to what else I can do or where Im going wrong.