Com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:You has an error in your SQL syntax; Check the manual, corresponds to your MySQL server version for the right syntax to use near ' U–ì€?ú?] Qs\0¥?c§?wb??? ? ú??h? A?nc?? W G ù+\ ', yóxè2o?2§w.l–<xjz| ' O??? L?zo?? ' at line 1
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:2624)
At Com.mysql.jdbc.PreparedStatement.executeInternal (preparedstatement.java:2127)
At Com.mysql.jdbc.PreparedStatement.executeUpdate (preparedstatement.java:2427)
At Com.mysql.jdbc.PreparedStatement.executeUpdate (preparedstatement.java:2345)
At Com.mysql.jdbc.PreparedStatement.executeUpdate (preparedstatement.java:2330)
At Com.silence.mysqlTest2.JDBCTest.testInsertBlob (jdbctest.java:95)
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)
Obvious garbled, look at the next MySQL system encoding set GBK, which with the MyEclipse Project code for Utf-8 obvious inconsistency, and then the GBK of the MySQL changed to UTF8, it can be.
Com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: garbled when inserting BLOB data