java.sql.SQLException

Connection is read-only. Queries leading to data modification are not allowed.

Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13888

  • Connection is read-only. Queries leading to data modification are not allowed
  • Connection is read-only. Queries leading to data modification are not allowed
  • Connection is read-only. Queries leading to data modification are not allowed.
  • Stack trace

    • java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1516) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1485) at com.mysql.jdbc.RowDataDynamic.close(RowDataDynamic.java:195) at com.mysql.jdbc.ResultSetImpl.realClose(ResultSetImpl.java:7473) at com.mysql.jdbc.ResultSetImpl.close(ResultSetImpl.java:881)

    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

    4 times, 20 hours ago
    3 times, 1 day ago
    6 times, 2 days ago
    693 times, 2 days ago
    5 times, 2 weeks ago
    149 more bugmates