Hello to all. It’s impossible to create a driver driver = new FabricMySQLDriver (); Writes cannot resolve symbol FabricMySQLDriver.

I am doing an example on video tutorials and there is imported com.mysql.fabric.jdbc.FabricMySQLDriver - I don’t want to import such a thing.

Connected: Maven: mysql: mysql-connector-java: 6.0.3

What could be the problem?

    1 answer 1

    The problem is that in 6.0.3, FabricMySQLDriver is not defined and therefore "cannot resolve symbol FabricMySQLDriver". Try to replace the dependency in pom.xml with an earlier version, the one used in your lesson or

    <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.31</version> </dependency> </dependencies> 
    • Thanks, help) Do not tell me, but in another way this problem is solved? There must be an alternative in the new version - Anna
    • 2
      @Anna from help : "Removed FabricMySQLDriver. Instead of using the jdbc: mysql: fabric: // scheme." - zRrr
    • one
      @ Anna pastebin.com/rwgPsfgW you need to use the url in the form as it is written in urlfixed and you do not need to explicitly create a driver pastebin.com/rwgPsfgW link with an example of use and description - diofloyk