java.sql.SQLException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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

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

  • Error when dumping logs
    via GitHub by havejack
    ,
  • Errors Spamming Server Logs
    via GitHub by brodiej
    ,
  • new install problem
    via GitHub by gzanthony
    ,
  • Unable to update 1.0.3 db?
    via GitHub by ojhunt
    ,
  • Nie wybrano żadnej bazy danych
    via GitHub by divinuss
    ,
    • 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.StatementImpl.execute(StatementImpl.java:757) at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:732) at razorcaseeditor.migration.MysqlMigrator.main(MysqlMigrator.java:42) Caused by: java.sql.SQLException: Unknown system variable 'tx_read_only' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2812) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2761) at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1612) at com.mysql.jdbc.ConnectionImpl.isReadOnly(ConnectionImpl.java:3933) ... 4 more

    Users with the same issue

    slash
    4 times, last one,
    tvrmsmith
    4 times, last one,
    Unknown visitor1 times, last one,
    MethodCall
    1 times, last one,
    mortalman7
    2 times, last one,
    145 more bugmates