Archive for November, 2009
Can’t connect to MySQL server on (10060)
by Dush on Nov.18, 2009, under Development, Interesting, Music, MySQL
If you are trying connect to a remote MySQL server and if your MySQL client giving you the error message
Can’t connect to MySQL server on ‘< Host name or IP address >‘ (10060)
Check whether your Public IP is allowed to access server,whether your IP is in the Allowed host list.
Couldn’t close query, Couldn’t get row from result set
by Dush on Nov.10, 2009, under Business Intelligence, Kettle (PDI), Pentaho
Today when I was running one of my kettle scripts against a large Data Ware House DB, an error popped out in my log, something looks like this,
Unexpected error :
org.pentaho.di.core.exception.KettleDatabaseException:
Couldn’t get row from result set
and further
Unexpected error closing query : org.pentaho.di.core.exception.KettleDatabaseException:
Couldn’t close query: resultset or prepared statements
Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException
MESSAGE: Connection reset STACKTRACE:java.net.SocketException: Connection reset
This is simply because, after long time in execution the MySQL server get confused at somewhere in the corner and decides to not to feed the rows back to JDBC driver. As I found in MySQL massage board placing SQL_NO_CACHE next to your SELECT keyword (SELECT SQL_NO_CACHE * FROM users) should solve the issue.
I will confirm, if this works since my script is still running, so far so good!
To be verified….
REF :: http://forums.mysql.com/read.php?39,203407,217196#msg-217196
