<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-488445023056953016</atom:id><lastBuildDate>Thu, 05 Sep 2024 02:05:20 +0000</lastBuildDate><category>FUNNY VIDEOS</category><category>Chrome</category><category>Connector/j Installation</category><category>Facebook</category><category>Facebook Status size changer</category><category>How to change Facebook status Size</category><category>JDBC Driver Installation</category><category>JDBC IMPLEMENTATION</category><category>JDBC Type-4 Installation</category><category>MySql Installation</category><category>MySql-JAVA connectivity</category><category>Tweaks</category><category>Ways To Be HappY</category><title>FunFuni</title><description></description><link>http://funfuni.blogspot.com/</link><managingEditor>noreply@blogger.com (Saurabh Mahendru)</managingEditor><generator>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:image href="http://lh5.ggpht.com/_O8ztn-51a2k/TE-7DTsgs2I/AAAAAAAAAIc/ZZXcTT-OcME/Saurabh.jpg"/><itunes:keywords>funny,hillarious,happy,comedy</itunes:keywords><itunes:summary>Items that I am podcasting are funny, hillarious and the one to make you happy</itunes:summary><itunes:subtitle>Fun</itunes:subtitle><itunes:category text="Comedy"/><itunes:category text="Kids &amp; Family"/><itunes:author>Saurabh Mahendru</itunes:author><itunes:owner><itunes:email>mahendru.saurabh@gmail.com</itunes:email><itunes:name>Saurabh Mahendru</itunes:name></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-5380282963661157298</guid><pubDate>Tue, 25 Jan 2011 06:01:00 +0000</pubDate><atom:updated>2013-01-10T17:52:57.131+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Connector/j Installation</category><category domain="http://www.blogger.com/atom/ns#">JDBC Driver Installation</category><category domain="http://www.blogger.com/atom/ns#">JDBC IMPLEMENTATION</category><category domain="http://www.blogger.com/atom/ns#">JDBC Type-4 Installation</category><category domain="http://www.blogger.com/atom/ns#">MySql Installation</category><category domain="http://www.blogger.com/atom/ns#">MySql-JAVA connectivity</category><title>COMPLETE DATABASE CONNECTIVITY IN JAVA (MySQL-JDBC DRIVER-JAVA)</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="100" src="http://img806.imageshack.us/img806/958/javamysql.jpg" width="161" /&gt;&lt;/div&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Hello Friend,&lt;br /&gt;
Today I am writing about COMPLETE DATABASE CONNECTIVITY IN JAVA. The reason behind writing on this topic is it's very difficult to find help on this topic and if we found it's in pieces, because there is no help for complete database connectivity. Even in books JDBC topic is quite hazy.&lt;br /&gt;
So here I am throwing some light on this topic :-).&lt;br /&gt;
For convenience post is divided into three parts :-&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt;Installing and configuring MySql.&lt;/li&gt;
&lt;li&gt;Installing and configuring JDBC Driver (Connector/J in this example)&lt;/li&gt;
&lt;li&gt;Java Program to handle and manipulating data&lt;/li&gt;
&lt;/ol&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;ol style="list-style-type: upper-roman; text-align: left;"&gt;&lt;li style="font-weight: bold;"&gt;Installing and configuring MySql.&lt;/li&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt; Download &lt;a href="http://www.mysql.com/downloads/mysql/" title="Click to download"&gt;MySql Community Server&lt;/a&gt; zip file(without installer) compatible to your windows.&lt;/li&gt;
&lt;li&gt;Create new folder name it "mysql"(without quotes) Extract the zip file on that folder.&lt;/li&gt;
&lt;li&gt;Now open your command prompt and go to the mysql directory that you created and then go inside the extracted directory something like(mysql-5.5.8-winx64) then bin.&lt;br /&gt;
&lt;div class="command"&gt;C:\&amp;gt;cd C:\mysql\mysql-5.5.8-winx64\bin &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Now type command "mysqld"(without quotes) Hit Enter&lt;br /&gt;
Allow access if firewall is blocking mysqld.exe hence your MySql server starts.&lt;/li&gt;
&lt;li&gt;Remain this command prompt open and open new Command Prompt and repeat Step 3. again&lt;/li&gt;
&lt;li&gt;Type mysql -u root&lt;div class="command"&gt;C:\mysql\mysql-5.5.8-winx64\bin&amp;gt;mysql - u root&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Notice you will get the mysql&amp;gt; prompt.&lt;br /&gt;
Now select database mysql using following command:&lt;div class="command"&gt;mysql&amp;gt; use mysql&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Now change the password of root user for security purpose use following command &lt;div class="command"&gt;mysql&amp;gt; UPDATE user SET password = PASSWORD('urpassword') WHERE user = 'root';&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Now to delete ghost account use following command: &lt;div class="command"&gt;mysql&amp;gt; DELETE FROM user WHERE user = '';&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Now just quit from mysql using following command: &lt;div class="command"&gt;mysql&amp;gt;quit&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Your Topic number I is completed let's move to next step(Driver Installation)&lt;/li&gt;
&lt;/ol&gt;&lt;li style="font-weight: bold;"&gt;Installing JDBC driver&lt;/li&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt;For JDBC connectivity to MySql we are using Type-4 driver &lt;a href="http://www.mysql.com/downloads/connector/j/" title="Click to download"&gt;Connector/J&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Again download the zip file for windows user.&lt;/li&gt;
&lt;li&gt;Create new folder named as "jdbc"(without quotes) in C:\ and extract the zip file in that folder&lt;/li&gt;
&lt;li&gt;Now we have to set Classpath to install JDBC Driver&lt;/li&gt;
&lt;li&gt;Right click on my computer and select properties and Advanced Settings then click to environment variables&lt;/li&gt;
&lt;li&gt;Now in System variables edit Classpath variable and at the end of it's value there should be semicolon to end the previous path than past your jdbc directory address ends with .jar file driver name and then semicolon in the end.&lt;br /&gt;
Now save it and your driver is also installed. :)&lt;/li&gt;
&lt;/ol&gt;&lt;li style="font-weight: bold;"&gt;Java Program to handle and manipulating data &lt;/li&gt;
&lt;/ol&gt;&lt;textarea onclick="javascript:(this).select();" readonly="true" style="white-space:nowrap; resize:none;height: 500px; overflow-y: scroll; width: 586px;" &gt;import java.sql.*;&lt;br /&gt;
public class SimpleConnection {&lt;br /&gt;
    public static void main(String args[]) {&lt;br /&gt;
        Connection con = null;&lt;br /&gt;
        try {&lt;br /&gt;
            Class.forName("com.mysql.jdbc.Driver").newInstance();&lt;br /&gt;
            con = DriverManager.getConnection("jdbc:mysql:///mysql", "root", "urpassword");&lt;br /&gt;
            if (!con.isClosed()) {&lt;br /&gt;
                System.out.println("Successfully connected to MySQL server...");&lt;br /&gt;
                Statement stmt = con.createStatement();&lt;br /&gt;
                ResultSet rs = stmt.executeQuery("SELECT user,host FROM user WHERE user = 'root'");&lt;br /&gt;
                while (rs.next()) {&lt;br /&gt;
                    System.out.println(rs.getString("user") + " " + rs.getString("host"));&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        } catch (Exception e) {&lt;br /&gt;
            System.err.println("Exception: " + e.getMessage());&lt;br /&gt;
        } finally {&lt;br /&gt;
            try {&lt;br /&gt;
                if (con != null) con.close();&lt;br /&gt;
            } catch (SQLException e) {}&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/textarea&gt;  &lt;/div&gt;&lt;/div&gt;</description><link>http://funfuni.blogspot.com/2011/01/complete-database-connectivity-in-java.html</link><thr:total>0</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-4066237340653207940</guid><pubDate>Sun, 16 Jan 2011 07:57:00 +0000</pubDate><atom:updated>2011-01-28T19:01:22.074+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Chrome</category><category domain="http://www.blogger.com/atom/ns#">Facebook</category><category domain="http://www.blogger.com/atom/ns#">Facebook Status size changer</category><category domain="http://www.blogger.com/atom/ns#">How to change Facebook status Size</category><category domain="http://www.blogger.com/atom/ns#">Tweaks</category><title>Facebook Status-size changer</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;Hi Friends,&lt;br /&gt;
As we all know that Facebook new update is quite annoyed as they &lt;b&gt;changed&lt;/b&gt; the &lt;b&gt;Facebook status size&lt;/b&gt;.&lt;br /&gt;
Facebook designers thinks that this awesome but none of the user is comfortable with the update.&lt;br /&gt;
As I am also one of you I'm also annoyed with this and started thinking some tweak for this and I got an Idea SirJII....&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
So an idea rings why not to create a small simple JavaScript for this and that works. But another problem came into is how to use this javaScript for Facebook&amp;nbsp;every time&amp;nbsp;user loads it?&lt;br /&gt;
Then I got some interesting thing that I can create Extensions for Google Chrome Browser and whola it's awesome now.&lt;br /&gt;
&lt;br /&gt;
But this solution only work in Google Chrome and might work in Opera too as opera has it's userjs API however I didn't tested this on Opera.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;div style="color: #3b5998; float: left;"&gt;&lt;b&gt;Old Facebook Status settings just a Click Away!!&lt;/b&gt;&lt;/div&gt;&lt;table cellpadding="0" cellspacing="0" class="install_butt"&gt;&lt;tbody&gt;
&lt;tr&gt;  &lt;td class="butt_left"&gt;&lt;/td&gt;  &lt;td class="butt_middle"&gt;&lt;a class="butt_link" href="https://sites.google.com/site/mahendrusnextremeworld/Home/old_fb_status_size.user.js"&gt;&lt;b&gt;Install&lt;/b&gt;&lt;/a&gt;&lt;/td&gt; &lt;td class="butt_right"&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Facebook Status before installation:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img alt="Before Install" src="http://i.imgur.com/JCDlI.jpg" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Facebook Status After installation:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img alt="After Install" src="http://i.imgur.com/uWzGx.jpg" /&gt;&lt;/div&gt;&lt;/div&gt;</description><enclosure length="0" type="image/jpeg" url="http://i.imgur.com/JCDlI.jpg"/><link>http://funfuni.blogspot.com/2011/01/facebook-status-size-changer.html</link><thr:total>0</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author><itunes:explicit>no</itunes:explicit><itunes:subtitle>&amp;nbsp;Hi Friends, As we all know that Facebook new update is quite annoyed as they changed the Facebook status size. Facebook designers thinks that this awesome but none of the user is comfortable with the update. As I am also one of you I'm also annoyed with this and started thinking some tweak for this and I got an Idea SirJII.... So an idea rings why not to create a small simple JavaScript for this and that works. But another problem came into is how to use this javaScript for Facebook&amp;nbsp;every time&amp;nbsp;user loads it? Then I got some interesting thing that I can create Extensions for Google Chrome Browser and whola it's awesome now. But this solution only work in Google Chrome and might work in Opera too as opera has it's userjs API however I didn't tested this on Opera. Old Facebook Status settings just a Click Away!! Install Facebook Status before installation: Facebook Status After installation:</itunes:subtitle><itunes:author>Saurabh Mahendru</itunes:author><itunes:summary>&amp;nbsp;Hi Friends, As we all know that Facebook new update is quite annoyed as they changed the Facebook status size. Facebook designers thinks that this awesome but none of the user is comfortable with the update. As I am also one of you I'm also annoyed with this and started thinking some tweak for this and I got an Idea SirJII.... So an idea rings why not to create a small simple JavaScript for this and that works. But another problem came into is how to use this javaScript for Facebook&amp;nbsp;every time&amp;nbsp;user loads it? Then I got some interesting thing that I can create Extensions for Google Chrome Browser and whola it's awesome now. But this solution only work in Google Chrome and might work in Opera too as opera has it's userjs API however I didn't tested this on Opera. Old Facebook Status settings just a Click Away!! Install Facebook Status before installation: Facebook Status After installation:</itunes:summary><itunes:keywords>funny,hillarious,happy,comedy</itunes:keywords></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-2013328131039128053</guid><pubDate>Wed, 18 Aug 2010 03:39:00 +0000</pubDate><atom:updated>2010-08-18T09:15:12.620+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">FUNNY VIDEOS</category><title>Is your phone ringing ? :D (Toot Tone)</title><description>&lt;div style="background:transparent;width:540px;height:334px"&gt;&lt;embed flashVars="playerVars=showStats=yes|autoPlay=no|videoTitle=Toot Tone" src="http://www.metacafe.com/fplayer/98090/toot_tone.swf" width="540" height="334" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_98090" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/div&gt;&lt;div style="font-size:12px;"&gt;&lt;/div&gt;</description><link>http://funfuni.blogspot.com/2010/08/is-your-phone-ringing-d.html</link><thr:total>0</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-7606264830397558899</guid><pubDate>Sun, 08 Aug 2010 04:29:00 +0000</pubDate><atom:updated>2010-08-18T13:54:08.009+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">FUNNY VIDEOS</category><title>7x13=?</title><description>&lt;object width="480" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/yHZzObQUgE8&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/yHZzObQUgE8&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;</description><link>http://funfuni.blogspot.com/2010/08/7-x-13.html</link><thr:total>0</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-7695319140374918268</guid><pubDate>Sun, 08 Aug 2010 04:26:00 +0000</pubDate><atom:updated>2010-08-18T13:56:10.850+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">FUNNY VIDEOS</category><title>MEN'S BRAIN VS WOMEN'S BRAIN</title><description>&lt;object width="480" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/0BxckAMaTDc&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/0BxckAMaTDc&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;</description><link>http://funfuni.blogspot.com/2010/08/mens-brain-vs-womens-brain.html</link><thr:total>0</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-488445023056953016.post-8111111196172029039</guid><pubDate>Mon, 02 Aug 2010 06:52:00 +0000</pubDate><atom:updated>2011-02-10T08:48:01.574+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ways To Be HappY</category><title>Ways To Be HappY</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="background: url(https://sites.google.com/site/mahendrusnextremeworld/Home/happy.jpg) no-repeat; visibility: hidden;"&gt;
&lt;/div&gt;
&lt;div style="color: #073763;"&gt;
Hi My name is Saurabh Mahendru.&lt;/div&gt;
&lt;div style="color: #073763;"&gt;
&amp;nbsp;I created this blog to put forward a step to feel happiness. Throughout this blog I will try to low down some stress from your shoulder and make you feel happy with some humorous and funny things or with some good thoughts.&lt;/div&gt;
&lt;div style="color: #073763;"&gt;
So I am starting with some ways to be happy. I read somewhere that we should do atleast 12 things if we want to be happy so I m sharing that first.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="background-color: #c7c2ef; border: 1px solid #3F377F;"&gt;
&lt;div style="color: #e69138; font-size: 20px; height: 35px; line-height: 35px;"&gt;
&lt;b style="align: center;"&gt;&amp;nbsp;12 Necessities to feel happiness:-&lt;/b&gt;&lt;/div&gt;
&lt;ol style="background-color: #948bdf; color: #073763; margin: 0px; padding: 2px 4px 4px 46px;"&gt;
&lt;li&gt;Make up your mind to be happy.&lt;/li&gt;
&lt;li&gt;Do some things that help others.&lt;/li&gt;
&lt;li&gt;Appreciate your friends' smiles by giving nice comment on it(Hey, dis looks good on you.)&lt;/li&gt;
&lt;li&gt;Live in the moment.&lt;/li&gt;
&lt;li&gt;Find happiness in others&lt;/li&gt;
&lt;li&gt;See yourself in mirror smile at glance and appreciate yourself as we know everyone looks beautiful while smiling&lt;/li&gt;
&lt;li&gt;Do small and bunch of things that makes your sole happy that you did so much things ;-)&lt;/li&gt;
&lt;li&gt;Remember your great moments with your special one.&lt;/li&gt;
&lt;li&gt;There is always two sides one is positive and the other is negative. Keep positive side in your heart and negative for mind so that mind can find solution and negative will not exist.&lt;/li&gt;
&lt;li&gt;Do things in which you find pleasure in a long run.&lt;/li&gt;
&lt;li&gt;Always know that we all are the creators of our present. So if right now it's not seems to be good enough, in future we have to do much better so that our future seems to be the way we want.&lt;/li&gt;
&lt;li style="margin-bottom: 0px;"&gt;The last I want to be filled by you via comment because that's more precious what you think. :-) ....................................&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://funfuni.blogspot.com/2010/08/hi-my-name-is-saurabh-mahendru.html</link><thr:total>1</thr:total><author>mahendru.saurabh@gmail.com (Saurabh Mahendru)</author></item></channel></rss>