How add mysql JDBC driver to Intellij?
In the Data Sources window, right-click and then click Add Data Source -> DB Data Source. In the Data Source Properties dialog that appears, the following properties are required: JDBC Driver Files: Click the button next to this menu to add the JDBC Driver file cdata. jdbc.
How to add JDBC driver in IntelliJ?
URL for Connection:- The connection URL for the mysql database is jdbc:mysql://localhost:3306/mydb ('mydb' is the name of database). Specify to the DriverManager which JDBC drivers to try to make Connections use below line.