Oracle 5.0 Reference Manual page 2140

Table of Contents

Advertisement

// If we got here, and conn is not null, the
// transaction should be rolled back, as not
// all work has been done
try {
} finally {
}
} catch (SQLException sqlEx) {
//
// If we got an exception here, something
// pretty serious is going on, so we better
// pass it up the stack, rather than just
// logging it...
throw sqlEx;
}
}
}
} while (!transactionCompleted && (retryCount > 0));
}
Note
Use of the
no safe method of reconnecting to the MySQL server without risking some
corruption of the connection state or database state information. Instead, use
a connection pool, which will enable your application to connect to the MySQL
server using an available connection from the pool. The
facility is deprecated, and may be removed in a future release.
21.3.15.5: I'm trying to use JDBC 2.0 updatable result sets, and I get an exception saying my
result set is not updatable.
Because MySQL does not have row identifiers, MySQL Connector/J can only update result sets that
have come from queries on tables that have at least one
primary key column, and the query can only span one table (that is, no joins). This is outlined in the
JDBC specification.
Note that this issue only occurs when using updatable result sets, and is caused because Connector/
J is unable to guarantee that it can identify the correct rows within the result set to be updated without
having a unique reference to each row. There is no requirement to have a unique field on a table if you
are using
or
UPDATE
DELETE
matched using a
WHERE
21.3.15.6: I cannot connect to the MySQL server using Connector/J, and I'm sure the
connection parameters are correct.
Make sure that the
skip-networking
J must be able to communicate with your server over TCP/IP; named sockets are not supported. Also
ensure that you are not filtering connections through a firewall or other network security system. For
more information, see
21.3.15.7: I am trying to connect to my MySQL server within my application, but I get the
following error and stack trace:
java.net.SocketException
MESSAGE: Software caused connection abort: recv failed
STACKTRACE:
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
Troubleshooting Connector/J Applications
conn.rollback();
conn.close();
autoReconnect
statements on a table where you can individually specify the criteria to be
clause.
[421]
Section C.5.2.2,
"Can't connect to [local] MySQL
2120
option is not recommended because there is
primary
key, the query must select every
option has not been enabled on your server. Connector/
autoReconnect
server".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents