<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Accessing MySQL on NetBeans using JDBC, Part I: Create a connection</title> <atom:link href="http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/feed/" rel="self" type="application/rss+xml" /><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/</link> <description>Source of IT knowledge</description> <lastBuildDate>Thu, 09 Feb 2012 17:22:01 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: ammouna</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10168</link> <dc:creator>ammouna</dc:creator> <pubDate>Sat, 28 Jan 2012 01:30:04 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10168</guid> <description>i have a big problem can someone help me please,
i&#039;m using netbeans7.1 and mysql5.5 i want to connect the BD with the interface jframe.but i always have this exception:
&quot;SQL Exception: java.sql.SQLException: Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: YES)&quot;
also i created 4 jframe in the same package when i click the button in the first one the second must show up but it doesn&#039;t.so what i must do???please help me because this application is for the stage!!!!</description> <content:encoded><![CDATA[<p>i have a big problem can someone help me please,<br
/> i&#8217;m using netbeans7.1 and mysql5.5 i want to connect the BD with the interface jframe.but i always have this exception:<br
/> &#8220;SQL Exception: java.sql.SQLException: Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: YES)&#8221;</p><p>also i created 4 jframe in the same package when i click the button in the first one the second must show up but it doesn&#8217;t.so what i must do???please help me because this application is for the stage!!!!</p> ]]></content:encoded> </item> <item><title>By: mohan</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10158</link> <dc:creator>mohan</dc:creator> <pubDate>Fri, 20 Jan 2012 14:40:15 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10158</guid> <description>I have an error like this please help me........
&quot;Class Not Found Exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver&quot;.............</description> <content:encoded><![CDATA[<p>I have an error like this please help me&#8230;&#8230;..<br
/> &#8220;Class Not Found Exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver&#8221;&#8230;&#8230;&#8230;&#8230;.</p> ]]></content:encoded> </item> <item><title>By: deep</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10147</link> <dc:creator>deep</dc:creator> <pubDate>Tue, 17 Jan 2012 08:17:25 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10147</guid> <description>as per step 3 i clicked to the button add jar file but it cant open the new window so i can add the jar file.....</description> <content:encoded><![CDATA[<p>as per step 3 i clicked to the button add jar file but it cant open the new window so i can add the jar file&#8230;..</p> ]]></content:encoded> </item> <item><title>By: roshni</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10145</link> <dc:creator>roshni</dc:creator> <pubDate>Mon, 16 Jan 2012 16:45:59 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10145</guid> <description>need help,,
i added jar file,bt still not working..error as no driver found..what to do?????</description> <content:encoded><![CDATA[<p>need help,,<br
/> i added jar file,bt still not working..error as no driver found..what to do?????</p> ]]></content:encoded> </item> <item><title>By: aids</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10134</link> <dc:creator>aids</dc:creator> <pubDate>Thu, 12 Jan 2012 12:24:24 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10134</guid> <description>You are whalecum</description> <content:encoded><![CDATA[<p>You are whalecum</p> ]]></content:encoded> </item> <item><title>By: biju medayil</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10133</link> <dc:creator>biju medayil</dc:creator> <pubDate>Thu, 12 Jan 2012 11:59:12 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10133</guid> <description>@jakoyoski
Change the first line in try Block To
&#039;Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();&#039;
Also check the mysql connector jar file in your Class Path</description> <content:encoded><![CDATA[<p>@jakoyoski<br
/> Change the first line in try Block To<br
/> &#8216;Class.forName(&#8220;com.mysql.jdbc.Driver&#8221;).newInstance();&#8217;</p><p>Also check the mysql connector jar file in your Class Path</p> ]]></content:encoded> </item> <item><title>By: sandeep.rai</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10132</link> <dc:creator>sandeep.rai</dc:creator> <pubDate>Thu, 12 Jan 2012 11:43:27 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10132</guid> <description>thankxxx alot man !!!!!!</description> <content:encoded><![CDATA[<p>thankxxx alot man !!!!!!</p> ]]></content:encoded> </item> <item><title>By: aids</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10131</link> <dc:creator>aids</dc:creator> <pubDate>Thu, 12 Jan 2012 08:58:24 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10131</guid> <description>Aids</description> <content:encoded><![CDATA[<p>Aids</p> ]]></content:encoded> </item> <item><title>By: jakoyoski</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-10024</link> <dc:creator>jakoyoski</dc:creator> <pubDate>Tue, 06 Dec 2011 06:05:52 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-10024</guid> <description>am developing a web based eshop on JEE platform. my application can not connect to the database the following is the code am using to connect
package org.grb.controller;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
//
public class loginServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException {
String username=req.getParameter(&quot;username&quot;);
String password=req.getParameter(&quot;password&quot;);
res.setContentType(&quot;text/jsp&quot;);
PrintWriter out = res.getWriter();
System.out.println(username);
System.out.println(password);
try {
Class.forName(&quot;com.mysql.jdbc.Driver&quot;);
Connection con=DriverManager.getConnection(&quot;jdbc:mysql://localhost:3306/e_shop&quot;,&quot;&quot;,&quot;&quot;);
Statement stmt=con.createStatement();
String sql=(&quot;insert into loginTable(username,password) values(&#039;username&#039;,&#039;password&#039;)&quot;);
stmt.executeUpdate(sql);
out.println(&quot;Message successfully added!&quot;);
con.close();
}
catch(Exception e){
System.out.println(e);
}
}
}</description> <content:encoded><![CDATA[<p>am developing a web based eshop on JEE platform. my application can not connect to the database the following is the code am using to connect</p><p>package org.grb.controller;</p><p>import java.io.*;<br
/> import javax.servlet.*;<br
/> import javax.servlet.http.*;<br
/> import java.sql.*;</p><p> //<br
/> public class loginServlet extends HttpServlet {<br
/> @Override<br
/> public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException {<br
/> String username=req.getParameter(&#8220;username&#8221;);<br
/> String password=req.getParameter(&#8220;password&#8221;);</p><p> res.setContentType(&#8220;text/jsp&#8221;);<br
/> PrintWriter out = res.getWriter();<br
/> System.out.println(username);<br
/> System.out.println(password);<br
/> try {<br
/> Class.forName(&#8220;com.mysql.jdbc.Driver&#8221;);<br
/> Connection con=DriverManager.getConnection(&#8220;jdbc:mysql://localhost:3306/e_shop&#8221;,&#8221;",&#8221;");<br
/> Statement stmt=con.createStatement();<br
/> String sql=(&#8220;insert into loginTable(username,password) values(&#8216;username&#8217;,'password&#8217;)&#8221;);<br
/> stmt.executeUpdate(sql);<br
/> out.println(&#8220;Message successfully added!&#8221;);<br
/> con.close();<br
/> }<br
/> catch(Exception e){<br
/> System.out.println(e);<br
/> }<br
/> }<br
/> }</p> ]]></content:encoded> </item> <item><title>By: mike</title><link>http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/comment-page-4/#comment-9998</link> <dc:creator>mike</dc:creator> <pubDate>Wed, 30 Nov 2011 17:36:05 +0000</pubDate> <guid
isPermaLink="false">http://www.linglom.com/2007/12/05/accessing-mysql-on-netbeans-using-jdbc-part-i-create-a-connection/#comment-9998</guid> <description>run:
SQL Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
BUILD SUCCESSFUL (total time: 9 seconds)
hello everyone, can you please help me determine what&#039;s wrong.i follow the instructions, then when i run the code that is the output.</description> <content:encoded><![CDATA[<p>run:<br
/> SQL Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure</p><p>The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.<br
/> BUILD SUCCESSFUL (total time: 9 seconds)</p><p>hello everyone, can you please help me determine what&#8217;s wrong.i follow the instructions, then when i run the code that is the output.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 4/20 queries in 0.027 seconds using disk: basic
Content Delivery Network via cdn.linglom.com/linglom

Served from: www.linglom.com @ 2012-02-10 10:58:46 -->
