Skip to content

执行mysql_db文件出现报错,请教一下怎么解决 #2

Description

@bcaixl

报错内容:pymysql.err.InternalError: (1364, "Field 'create_time' doesn't have a default value")

(PS:虽然在数据库中设置createtime这一项为“允许空值”可以解决,但是这样就没有创建时间了。所以不想用这个办法)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions