Java project,every parameters is correct,but it can't connect the MySql database
java project , it work first, but it doesn't work suddenly. find code under:
connection = (Connection) DriverManager.getConnection(url, username, password); the connection is null.
last find reason: I stop my Local Area Connection. set is run ... the problem is solved.