I\'m having troubles with my project , it involves JDBC
and Mysql
connection .
When I do the following :
private Statement m_
I encounter the same error, this is how I fixed it:
I used DriverManager class like this:
Class.forName("com.mysql.jdbc.Driver");
Connection Hello = DriverManager.getConnection("jdbc:mysql://YOUR-URL-HERE", "USERNAME", "PASSWORD");
And that's it. Also, when selecting a table, remenber to put the DB name first, like:
"DB_NAME.TABLE_NAME".