One Liner...

...tujhe bhi apne pe ye aeitbaar hai ki nahi...

Monday, April 14, 2014

Connector/JDBC and Java :: java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

The error arised while connecting to database.

This problem is caused because of connector. I was using mysql-connector-java-2.0.14-bin.jar from java to mysql as connector. But when I updated to mysql-connector-java-3.1.14-bin.jar it started working. 

You can also check in mysql by command "status"
Connection id:          47
Current database:
Current user:           root@localhost
SSL:                    Not in use
Using delimiter:        ;
Server version:         5.5.21 MySQL Community Server (GPL)
Protocol version:       10
Connection:             localhost via TCP/IP
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
TCP port:               3306
Uptime:                 47 min 32 sec

which did not show any conflict in port. Basically this could had arises due to mysql version i am using and the connector i used to connect with this MySQL.

Wednesday, October 31, 2012

Some more quotes

        "Short words are best and the old words when short are best of all."

- Winston Churchill

        "Focusing is about saying no."

- Steve Jobs

http://paulgraham.com/quo.html

Quotations!!!

 "The greatest mistake you can make in
life is to be continually fearing
you will make one."
- Elbert Hubbard

"Sometimes I need to be a stranger to myself, allowing my soul to show me what I need to see..."

"Don't allow your wounds to transform you into someone you are not..."

"Every blessing, when ignored, becomes a curse... "

"Don't sweep the mistake under the carpet. Pay the price and move on."

"Illiterates of the 21st century will not be those who cannot read and write but those who cannot learn, unlearn, and relearn."

“Oftentimes. when people are miserable, they will want to make other people miserable, too. But it never helps.”

"The universe only makes sense if we can share it with someone..."

"Make happy those who are near, and those who are far will come........"

“Life is such unutterable hell, solely because it is sometimes beautiful. If we could only be miserable all the time, if there could be no such things as love or beauty or faith or hope, if I could be absolutely certain that my love would never be returned, how much more simple life would be. One could plod through the Siberian salt mines of existence without being bothered about happiness. Unfortunately happiness is there. There is always the chance that another heart will come to mine. I can't help hoping and keeping faith and loving beauty. Quite frequently I am not so miserable as it would be wise to be.”
― T.H. White, Ghostly, Grim and Gruesome

"Fear of suffering is worse than suffering itself"

"The most powerful hallucinogen in this planet is called love. Highly addictive! you will see and hear things that don't exists...!"

"Do not argue with an idiot. He will drag you down to his level and beat you with experience."

Quotes