You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
不用更改任何代码,使用mysql 5.7,运行mysqlTest,经过测试是可以的:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66249
Server version: 5.7.19 MySQL Community Server (GPL)
。。。。
16:03:18.442 [main] INFO dbdemo.mysql.test.MysqlTest - ====user==== user name:user, department name:开发部, role name:admin
本人运行环境:macos 10.13.4,Intellij,mysql5.7,用JUnit测试(代码mysql部分)时报了一堆错
后来改动了三个地方:
1、按照readme中所述的配置mysql用户名密码,并在mysql中输入grant命令
2、pom.xml文件中增加mysql中JDBC的version
3、mysql改动编码配置:编码需要全部转化为utf-8格式。参考链接https://blog.csdn.net/xiongqiangwin1314/article/details/76983977
注意,改完编码后需要把之前建立的test数据库drop之后再重新create
就可以成功运行了。
The text was updated successfully, but these errors were encountered: