dbCon=DriverManager.getConnection("jdbc:odbc:personal");
你的访问数据库的用户名和密码怎么没有指定?
参考:
public static Connection getConnection(String url,
String user,
String password)
Parameters:
url - a database url of the form jdbc:subprotocol:subname
user - the database user on whose behalf the connection is being made
password - the user's password
你的访问数据库的用户名和密码怎么没有指定?
参考:
public static Connection getConnection(String url,
String user,
String password)
Parameters:
url - a database url of the form jdbc:subprotocol:subname
user - the database user on whose behalf the connection is being made
password - the user's password
解决方案 »
- jsp 调用winrar解压缩rar,只能解压缩一个文件。
- spring acegi 控制业务权限
- java使用lib
- 救命啊~~~~javascript怎么弹出钱箱(j2eePOS前台)
- 急,求一个中国版图
- 如何禁止在页面上打开的pdf文件的打印和另存
- 简单问题=======================引用包问题
- 我用servlet 时出现这个问题~~~很奇怪!
- 我要疯了!为什么在java中可以连上oracle,在jsp中就不行?请看代码:
- Java Applet 嵌入到网页里面在xp下能打开,在win7下就打不开
- PreparedStatement 怎么使用,它的功能是什么。能不能举个列子。
- Switch的怪胎??
然后再程序中指定用户名,密码,
假设用户ID为sa,密码为空,则有:
dbCon=DriverManager.getConnection("jdbc:odbc:personal","sa","");