![]() Note that as of this writing, the MariaDB driver does not support the new default authorization mechanism in MySQL version 8. For example: mysql-connector-java-3.1.10-bin.jar. Download the desired version of MySQL Connector/J from the MySQL download site. The MariaDB fork of the MySQL database also provides a MySQL compatible driver called the MariaDB Connector / J JDBC driver. Configuring ColdFusionMX to use a newer MySQL JDBC driver. String url = "jdbc:mysql://" + serverName + "/" + mydatabase Ĭonnection connection = DriverManager. This driver is called the MySQL Connector/J JDBC driver. String driverName = "" Ĭlass.forName(driverName) // here is the ClassNotFoundException Here is the code, the comment show where the error appear : import ![]() Place the JAR file in the ColdFusion Class Path: Server Configuration: Place the mysql-connector-java-3.1.10-bin.jar in cfusion /lib. You can also deduce that I have import the jar in my project (mysql-jdbc). Configuring ColdFusionMX to use a newer MySQL JDBC driver. Here you can have a pic from my IDE and the simple code that I wanted use. I come from visual studio/c# dev environment and i think that i should miss something. I become crazy I'm searching since two hours. ![]() I'm new in Java, and I need to establish a connection to a MySQL server (local), I have add the libraries in Intellij idea but it seems not work, the IDE can't find the class i think. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |