Comment on Tutorial - Using JDBC to connect to MySQL from Java Program By Rajan
Comment Added by : Partha
Comment Added at : 2009-11-28 11:32:53
Comment on Tutorial : Using JDBC to connect to MySQL from Java Program By Rajan
It seems like your getConnection doesnt recognize the credentials you pass. Can you try like this?
String url = "jdbc:mysql://localhost:3306/details";
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection (url, "root", "root");
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. dude its forces closes everytime what to do .....h
View Tutorial By: raam at 2013-01-10 13:05:57
2. when i trying to build the above program it is giv
View Tutorial By: bhagyalaxmi at 2008-10-10 23:45:45
3. its a good example
View Tutorial By: Sonal at 2009-03-25 08:35:10
4. i want every important questions in .net 3.5 and j
View Tutorial By: pawan at 2011-07-28 06:17:25
5. Thanks ,It is very useful...
View Tutorial By: SABARISH at 2014-08-08 05:46:43
6. oh u solved my one of the hardest problem through
View Tutorial By: zehra at 2012-01-28 19:44:14
7. Simple file writer example. .............
<
View Tutorial By: Chezhian TK at 2010-10-14 21:40:16
8. Thank you very much you resolved my issue.
View Tutorial By: ketan at 2012-02-01 11:16:47
9. i want to open pdf file from sd card and i dont wa
View Tutorial By: Karan Mavadhiya at 2013-01-30 12:02:30
10. Thnx.. it was clearly explained... tomorrow i have
View Tutorial By: Susmitha Sen at 2012-03-25 09:34:29