Eclipse - 如何添加新的 MariaDB 连接

Eclipse - How to add a new MariaDB connection(Eclipse - 如何添加新的 MariaDB 连接)
本文介绍了Eclipse - 如何添加新的 MariaDB 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何向 Eclipse 添加新的 MariaDB 连接?

How can I add a new MariaDB connection to eclipse?

我正在使用数据源资源管理器视图,但是当我尝试创建新的数据库连接时,有 MySQL、Oracle、Informix 的连接...但 MariaDB 没有.

I am using the Data Source Explorer view, however when I try to create a new database connection there are connections for MySQL, Oracle, Informix... but no for MariaDB.

谁能帮帮我?

推荐答案

如果需要为MariaDB创建数据库连接,选择Generic JDBC",点击下一步.

If you need to create a database connection for MariaDB, you choose "Generic JDBC" and click Next.

在下一个窗口中单击新驱动程序定义"按钮,然后从可用驱动程序模板"中选择通用 JDBC 驱动程序"

In next window click on "new driver definition" button then choose "Generic JDBC Driver" from "Available driver templates"

在JAR 列表"中,添加 Maria 连接器.您可以从 (https://downloads.mariadb.com/enterprise/152y-977s/connectors/java/connector-java-1.4.6/mariadb-java-client-1.4.6.jar).我用了mariadb-java-client-1.4.6.jar"

In "JAR List", add the Maria connector. You can get it from (https://downloads.mariadb.com/enterprise/152y-977s/connectors/java/connector-java-1.4.6/mariadb-java-client-1.4.6.jar). I used "mariadb-java-client-1.4.6.jar"

在属性"中,输入以下数据

In "Properties", enter the following data

Connection URL: jdbc:mariadb://localhost:3306/database_name
Database Name: database_name
Driver Class: org.mariadb.jdbc.Driver

您可以将用户 ID 设置为空并验证数据库的用户名和密码.测试它是否连接.

You can set User ID to empty and validate username and password of your database. Test if it connects.

这篇关于Eclipse - 如何添加新的 MariaDB 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

VertX 3.9.7 when i receive the form quot;throw exceptionquot; Size exceed allowed maximum capacityquot;(VertX 3.9.7收到表单时抛出异常SIZE超出允许的最大容量QUOT;)
JDK11 Upgrade Fails - ClassNotFoundException jdk.internal.ref.Cleaner(JDK11升级失败-ClassNotFoundException jdk.inder.ref.Cleaner)
How to make Eclipse compile patched modules on JDK 9+ by passing the --patch-module javac option to my project compiler? (see pic)(如何通过向我的项目编译器传递--patch-MODULE javac选项,让Eclipse在JDK 9+上编译打了补丁的模块?(见图))
JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)(JavaFX模块化应用程序,java.lang.mode.FindException:未找到模块javafx.Controls(Java 11,IntelliJ))
Returning NumberFormatException form SimpleDateFormat in Java code(在Java代码中返回SimpleDateFormat形式的NumberFormatException)
SimpleDateFormat() not giving IllegalArgumentException on passing invalid date format(SimpleDateFormat()在传递无效的日期格式时未给出IlLegalArgumentException)