Good day! Please do not kick much, the first question on Stack. :)

How can mysql-connector be added to Intellij Idea so that it can be added to the Gradle dependencies? I can not understand the principle of the connection of this connector. I suspect that in the Gradle dependencies you need to prescribe something like:

compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.34' 

But where to connect the connector? Gradle will not install it for me.

  • one
    Of course it will. That is what it is needed for . - enzo
  • As a result, it was possible to establish a connection with mysql - adding a driver name depending on it and adding the mysql driver file to jar in Libraries. While I can not understand correctly or not, it works. - Ilya Novikov

0