Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql8支持 #26

Open
RedMagicVer7 opened this issue Oct 16, 2018 · 0 comments
Open

mysql8支持 #26

RedMagicVer7 opened this issue Oct 16, 2018 · 0 comments

Comments

@RedMagicVer7
Copy link

RedMagicVer7 commented Oct 16, 2018

mysql8启动和sql会报错,解决了一部分,说一下问题

针对版本,

pom文件需要修改

mysql
mysql-connector-java
8.0.8-dmr

        <plugin>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-maven-plugin</artifactId>
            <version>1.3.2</version>
            <configuration>
                <configurationFile>${basedir}/src/main/resources/generatorConfig.xml</configurationFile>
                <overwrite>true</overwrite>
                <verbose>true</verbose>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>8.0.8-dmr</version>
                </dependency>

yml连接池信息修改
driver-class-name : com.mysql.cj.jdbc.Driver
url : jdbc:mysql://localhost:3306/geekcattle?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
type: com.alibaba.druid.pool.DruidDataSource

针对sql

image

账户密码正确登录会报错,推测admin可能为保留字段

数据库命名不是很规范

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant