-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
本人运行环境:macos 10.13.4,Intellij,mysql5.7,用JUnit测试(代码mysql部分)时报了一堆错
后来改动了三个地方:
1、按照readme中所述的配置mysql用户名密码,并在mysql中输入grant命令
2、pom.xml文件中增加mysql中JDBC的version
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
<scope>runtime</scope>
3、mysql改动编码配置:编码需要全部转化为utf-8格式。参考链接https://blog.csdn.net/xiongqiangwin1314/article/details/76983977
注意,改完编码后需要把之前建立的test数据库drop之后再重新create
就可以成功运行了。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels