https://stackoverflow.com/questions/30651830/use-jdbc-mysql-connector-in-intellij-idea
It’s easy to configure. First just open the IntelliJ IDE and follow this simple step:
File->Project Structure->Libraries
Then click on the plus(+) sign and select 对应的jar文件即可