-
Notifications
You must be signed in to change notification settings - Fork 211
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
索引长度太长了 #3
Comments
看样子是MySQL版本的问题,我的是MySQL 5.6
5.6里,utf8mb4编码索引长度最多191。话说这些主键也不用varchar(256)吧。 |
具体的话是参考的官方的表结构:https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/test/resources/schema.sql ,当然是和MySQL版本有关,我用的是MySQL5.7,官方的表结构某些数据类型也是需要修改的 |
建表
提示:
这个字段命名风格也不统一。
The text was updated successfully, but these errors were encountered: