Com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:Unknown Character set: ' Utf8mb4 '
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At Java.lang.reflect.Constructor.newInstance (constructor.java:526)
At Com.mysql.jdbc.Util.handleNewInstance (util.java:411)
At Com.mysql.jdbc.Util.getInstance (util.java:386)
At Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:1052)
At Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3609)
At Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3541)
At Com.mysql.jdbc.MysqlIO.sendCommand (mysqlio.java:2002)
At Com.mysql.jdbc.MysqlIO.sqlQueryDirect (mysqlio.java:2163)
At Com.mysql.jdbc.ConnectionImpl.execSQL (connectionimpl.java:2618)
At Com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet (connectionimpl.java:1880)
At Com.mysql.jdbc.ConnectionImpl.initializePropsFromServer (connectionimpl.java:3499)
At Com.mysql.jdbc.ConnectionImpl.connectOneTryOnly (connectionimpl.java:2384)
At Com.mysql.jdbc.ConnectionImpl.createNewIO (connectionimpl.java:2153)
At Com.mysql.jdbc.connectionimpl.<init> (connectionimpl.java:792)
At Com.mysql.jdbc.jdbc4connection.<init> (jdbc4connection.java:47)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At Java.lang.reflect.Constructor.newInstance (constructor.java:526)
At Com.mysql.jdbc.Util.handleNewInstance (util.java:411)
At Com.mysql.jdbc.ConnectionImpl.getInstance (connectionimpl.java:381)
At Com.mysql.jdbc.NonRegisteringDriver.connect (nonregisteringdriver.java:305)
At Java.sql.DriverManager.getConnection (drivermanager.java:571)
At Java.sql.DriverManager.getConnection (drivermanager.java:215)
At Com.silence.mysqlTest2.JDBCTools.getConnection (jdbctools.java:130)
At Com.silence.mysqlTest2.JDBCTest.testInsertBlob (jdbctest.java:82)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.junit.runners.model.frameworkmethod$1.runreflectivecall (frameworkmethod.java:47)
At Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:12)
At org.junit.runners.model.FrameworkMethod.invokeExplosively (frameworkmethod.java:44)
At Org.junit.internal.runners.statements.InvokeMethod.evaluate (invokemethod.java:17)
At Org.junit.runners.ParentRunner.runLeaf (parentrunner.java:271)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:70)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:50)
At Org.junit.runners.parentrunner$3.run (parentrunner.java:238)
At Org.junit.runners.parentrunner$1.schedule (parentrunner.java:63)
At Org.junit.runners.ParentRunner.runChildren (parentrunner.java:236)
At org.junit.runners.parentrunner.access$000 (parentrunner.java:53)
At Org.junit.runners.parentrunner$2.evaluate (parentrunner.java:229)
At Org.junit.runners.ParentRunner.run (parentrunner.java:309)
At Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:50)
At Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:467)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:683)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:390)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:197)
Unknown Character set: ' Utf8mb4 ', just beginning to look at the time thought it was MySQL character encoding and project encoding inconsistencies caused by, change
a half-day also no matter , in the online search for half a day, in fact, is not what character encoding problem, is the problem of MySQL drive, I put the use of mysql-
Connector-java5.1.26 changed to mysql-connector-java5.1.6 there was no error.
MySQL Error: Unknown character set: ' Utf8mb4 '