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

查看:508
本文介绍了如何将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(连接器/ J驱动程序)。应在窗口中列出驱动程序文件。如果没有,您可以下载该文件,然后单击添加并从硬盘驱动器中选择它。

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.

最后输入你的数据库详细信息,例如servername,username和password,然后单击完成。

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

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

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