java.sql.SQLException: Could not retrieve transation read-only status server at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:951) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941) at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3939) at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3910) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2410) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2377) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java :2361) at clojure.java.jdbc.internal$do_prepared_return_keys_STAR_$fn__2484.inv oke(internal.clj:278) at clojure.java.jdbc.internal$transaction_STAR_.invoke(internal.clj:174)
其实出现该问题是应mysql连接库的jar文件版本导致的,开始用的是5.1.26.后来改成5.1.20就可以了