如何在ubuntu中创建DSN

发布于 2024-12-04 01:41:15 字数 136 浏览 3 评论 0原文

我想在 Ubuntu Linux 10.10 中为具有 MySQL 后端的 Java 应用程序创建一个 DSN

抱歉,如果问题很简单,但我真的需要你的帮助。

我怎样才能创建它?需要安装哪些驱动程序?

I want to create a DSN in Ubuntu Linux 10.10 for a Java application with a MySQL back end.

Sorry if the question is simple but I really need your help.

How can I create it? What are the drivers that are needed to install for the same?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万水千山粽是情ミ 2024-12-11 01:41:15

JDBC 是在 Java 应用程序中获取数据库连接的方法。

您需要安装 MySQL 的 JDBC 驱动程序,例如 Connector/J。 Connector/J 的安装和使用记录在 MySQL 参考手册< /a>.

Connector/J的连接URL的格式在20.3.4.1。 Connector/J 的驱动程序/数据源类名称、URL 语法和配置属性

JDBC is the way to go to get database connectivity in a Java application.

You'll need to install a JDBC driver for MySQL, e. g. Connector/J. Installation and usage of Connector/J is documented in the MySQL reference manual.

The format of a connection URL for Connector/J is specifically described in 20.3.4.1. Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文