java.sql.SQLException: Could not retrieve transation read-only status server


Samebug tips

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg


7 months ago
Expert tip

Solutions on the web

Solution icon of web
Could not retrieve transation read-only status server

Solution icon of stackoverflow
via Stack Overflow by vaa25
, 8 months ago
Could not retrieve transation read-only status server

Solution icon of web
The MySQL server is running with the --read-only option so it cannot execute this statement

Solution icon of web
via lai18.com by Unknown author, 1 year ago
The MySQL server is running with the --read-only option so it cannot execute this statement

Solution icon of github
Column 'fruitName' not found.

Solution icon of stackoverflow
via Stack Overflow by Aby Jacob
, 1 year ago
Column 'QUESTION_DATA' not found.

Solution icon of stackoverflow
Plugin '*765C23FCC8127A2234DBCFB6E5207D82ED86264E' is not loaded

Solution icon of web
Can not issue executeUpdate() for SELECTs

Solution icon of web
Operation not allowed after ResultSet closed

Solution icon of web
Could not retrieve transation read-only status server

Stack trace

java.sql.SQLException: Could not retrieve transation read-only status server
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
160 more bugmates