Intellij IDEA Hibernate Console Does Not Find JDBC Driver


I am trying to use the Hibernate Console to query my database. My project is currently set up to use Hibernate. However, whenever I try a simple query, I get an error saying that the JDBC Driver cannot be found.

I currently have mysql-connector on my classpath

I'm really not sure what else to do. I think everything should be working, and it's not. Does anyone have any advice?


I checked the Data Sources and Drivers and confirmed that Intellij knows where a MySQL driver is. I know it works because I issued sql queries using the MySQL console.

I was able to resolve the JDBC Driver class not found Exception. I right clicked on a sessionFactory and selected "Assign Data Sources". Then I selected the MySQL data source. Before it was "none". Now everything is working