如何在ubuntu中创建DSN
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.