Hi everybody,
A few months ago i build a program that connects to a MySql database. The program worked fine.
Then i had to format my laptop. I installed the new slackware 13, and ever since that program that connects to a MySql Database dose't work anymore.
There's the error stack trace:
Code:
SQLException: State: 08S01Severity: 0
Communications link failure
The last packet successfully received from the server was 1,255,354,460,681 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
Exception in thread "main" java.lang.NullPointerException
I'm desperate to solve this.
I put the mysql connect in the class path, and one other several places.
I try both Eclipse and NetBeans, with the same result.
When i try to create a connection pool in Glassfish, dosen't ping.
Does anyone knows how to solve this problem?
Thank you all in advance