e Hibernate 访问 空间mysql数据库报错,高手帮看看
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute queryorg.hibernate.exception.SQLGrammarException: could not execute query
java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
org.springframework.dao.DataAccessResourceFailureException: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query
org.hibernate.exception.JDBCConnectionException: could not execute query
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Software caused connection abort: socket write error
STACKTRACE:
java.net.SocketException: Software caused connection abort: socket write error
** END NESTED EXCEPTION **
Last packet sent to the server was 16 ms ago.
--------------------编程问答-------------------- java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
--------------------编程问答-------------------- 表名写 错没,提示找不到's223495.NewsTable' 这个用户下的表呢,所以就会抛sql异常了。 --------------------编程问答-------------------- 操作不能执行,jdbc链接失败了 --------------------编程问答-------------------- 会不会是因为在hibernate配置文件中定义了schema,而你访问使用的用户不是schema定义的用户 --------------------编程问答-------------------- 表不存在。是不是表名写错了!? --------------------编程问答-------------------- 此用户下的表不存在.. --------------------编程问答--------------------
补充:Java , Web 开发