如何将 NetBeans 连接到 MySQL 数据库? [英] How to connect NetBeans to MySQL database?

查看:25
本文介绍了如何将 NetBeans 连接到 MySQL 数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 NetBeans 7.0,我是 NetBeans 世界的新手.谁能告诉我如何将我的应用程序连接到 MySQl/Postgres?我在 Windows XP 上工作.

I have just installed NetBeans 7.0 and I am a newbie in NetBeans' world. can any one tell me how to connect my application to MySQl / Postgres ? I work on Windows XP.

推荐答案

服务窗口中,您可以右键单击数据库选项卡并选择新建连接.

In the Services window you can right click on the Databases tab and select New Connection.

从下拉列表中选择 MySQL(Connector/J Driver).驱动程序文件应列在窗口中.如果没有,您可以下载该文件,然后单击添加并从您的硬盘驱动器中选择它.

Select MySQL(Connector/J Driver) from the drop down list. The driver file should be listed in the window. If not, you can download the file, then click add and select it from your hard drive.

最后输入您的数据库详细信息,例如服务器名称、用户名和密码,然后单击完成.

Finally enter your database details such as servername, username and password and click finish.

这篇关于如何将 NetBeans 连接到 MySQL 数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆