错误:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'bbs2011._catgory' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
at com.mysql.jdbc.Util.getInstance(Util.java:384)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
原因:就是一个table bbs2011._catgory是不存在的。因为我写错了。粗心导致严重的错误。其实表名为:_category。
细节决定成败。一定要记住,不要写错啦。
5615

被折叠的 条评论
为什么被折叠?



