问答详情
源自:3-4 [Hibernate单表操作] 对象类型

测试通过了但数据库没有生成数据

http://img.mukewang.com/57d0d09e0001688208020102.jpg

报以上错误

提问者:qq_有点小邪恶_0 2016-09-08 10:45

个回答

  • 园中梨
    2016-09-08 13:46:46

    可以试一下打开mysql程序

    mysql> SET character_set_client = utf8 ;

    mysql> SET character_set_connection = utf8 ;
    mysql> SET character_set_database = utf8 ;
    mysql> SET character_set_results = utf8 ;
    mysql> SET character_set_server = utf8 ;

    mysql> SET collation_connection = utf8 ;
    mysql> SET collation_database = utf8 ;
    mysql> SET collation_server = utf8 ;

    重启mysql服务,再重新运行java程序