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 using latest for geSuite
    via GitHub by Kainzo
    ,
  • Mysql Tomcat java.sql.SQLException - Spring Forum
    via by Unknown author,
  • GitHub comment 740#247589515
    via GitHub by oulenz
    ,
    • java.sql.SQLException: Access denied for user 'nunit '@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4323)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1267)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795)[mysql-connector-java-5.1.38.jar:5.1.38] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)[mysql-connector-java-5.1.38.jar:5.1.38] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.8.0_102] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[na:1.8.0_102] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.8.0_102] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[na:1.8.0_102]

    Users with the same issue

    linxiaolong
    1 times, last one,
    rocday
    1 times, last one,
    zbalint
    4 times, last one,
    Victor_IT
    1 times, last one,
    pulse00
    2 times, last one,
    146 more bugmates