MySQL has some excellent documentation, including a chapter on Installing on Windows. As for connecting to a database, have you used JDBC before? If not, check out the tutorials in the JDBC Documentation. JSP pages get compiled into servlets so you can use JDBC in them like you would in any other Java program.
Very simple something like the following will connect to your database and allow you to submit a query... assuming homework is the name of the database and the user name is root. Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost/homework?user=root"); Statement stmt = myConn.createStatement(); stmt.executeUpdate("some query...."); You'll also need a mysql-connector.jar downloaded and installed in your webapp. .... Hope this helps. [ March 01, 2004: Message edited by: Annemarie McKeown ]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads