java.sql.SQLException

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.

  • JDBC:Connection Issue When Run program
    via Stack Overflow by hamel123
    ,
  • schema workbench
    via by Fanni Zoraya,
  • Access remote Db
    via Stack Overflow by SkyLark
    ,
  • Installation error
    via infoglue by nobody
    ,
  • Android studio JDBC MySQL
    via Stack Overflow by scarface
    ,
  • communication link failure in java
    via Stack Overflow by Krishna Veni
    ,
    • java.sql.SQLException: Access denied for user 'root'@'192.168.1.1' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3436) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2775) at com.mysql.jdbc.Connection.<init>(Connection.java:1555) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at imagesstore.Main.main(Main.java:13)

    Users with the same issue

    linxiaolong
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    146 more bugmates