Sorry if this got sent twice... Hello all. Im trying to right a simple program for MySQL through java but am running into a problem of sorts. Following is the code that has theproblem:
conn = DriverManager.getConnection("jdbc:mysql://localhost/mysql?user=root&password=****");stmt = conn.createStatement(); stmt.execute("CREATE DATABASE quake3parsed"); conn.close(); shell.exec("C:\\mysql\\bin\\mysqladmin -u root - p**** reload").waitFor(); conn = DriverManager.getConnection("jdbc:mysql://localhost/quake3parsed?user=root&password==****");stmt = conn.createStatement(); The problem is on the second connect try I get the following SQL Exception: SQLException: General error: Unknown database 'quake3parsed' SQLState: S1000 VenderError: 1049 But if I go to access MySQL from any other source it shows that the database has been created and is there. Is there any sort ofgrace period that I need to wait for MySQL to take the new db? Also I tried it by using: shell.exec("C:\\mysql\\bin\\mysqladmin -u root -p***** CREATE quake3parsed").waitFor(); as well but that gave the same results. Thanks for the help in advance. -Nick --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php