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

数据导入mysql5.7报错 #15

Open
3746658 opened this issue Jun 2, 2017 · 3 comments
Open

数据导入mysql5.7报错 #15

3746658 opened this issue Jun 2, 2017 · 3 comments

Comments

@3746658
Copy link

3746658 commented Jun 2, 2017

[Err] 1136 - Column count doesn't match value count at row 1
[Err] INSERT INTO cmdb_resource_network VALUES (3,'10.16.25','2016-08-15 13:53:47','','',NULL,24,'25段生产环境');
[Err] 1231 - Variable 'time_zone' can't be set to the value of 'NULL'
[Err] /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE /;
[Err] 1231 - Variable 'sql_mode' can't be set to the value of 'NULL'
[Err] /
!40101 SET SQL_MODE=@OLD_SQL_MODE /;
[Err] 1231 - Variable 'foreign_key_checks' can't be set to the value of 'NULL'
[Err] /
!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS /;
[Err] 1231 - Variable 'unique_checks' can't be set to the value of 'NULL'
[Err] /
!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS /;
[Err] 1231 - Variable 'character_set_client' can't be set to the value of 'NULL'
[Err] /
!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT /;
[Err] 1231 - Variable 'collation_connection' can't be set to the value of 'NULL'
[Err] /
!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION /;
[Err] 1231 - Variable 'sql_notes' can't be set to the value of 'NULL'
[Err] /
!40111 SET SQL_NOTES=@OLD_SQL_NOTES /;
[Err] 1060 - Duplicate column name 'vlan'
[Err] /
*

  • 2017-04-04
    */
    alter table cmdb_resource_network add vlan varchar(10) comment "网络所在vlan";
    [Err] 1050 - Table 'cmdb_graph_quartz' already exists
    [Err] CREATE TABLE cmdb_graph_quartz (
    name varchar(200) DEFAULT NULL COMMENT '只要名字在,就不执行,等于一个锁',
    ip_address varchar(32) DEFAULT NULL COMMENT '哪个ip地址添加的',
    create_time bigint(20) DEFAULT NULL COMMENT '添加时间'
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    [Msg] Finished - Unsuccessfully

@zhaoyun006
Copy link
Collaborator

先手动修改下

@RoyZhou2008
Copy link

数据库脚本有两三处错误

@L00J
Copy link

L00J commented Jul 3, 2018 via email

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

4 participants