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

Unable to fully import database #15

Closed
Afolic opened this issue Jun 4, 2020 · 2 comments
Closed

Unable to fully import database #15

Afolic opened this issue Jun 4, 2020 · 2 comments

Comments

@Afolic
Copy link

Afolic commented Jun 4, 2020

Good day, thanks for this amazing project, I am trying to set this up on my local machine and I get the following error message "ERROR 1364 (HY000) at line 53: Field 'id' doesn't have a default value". I amd trying to import the sql file using the following command on my terminal "mysql -u root -pmyPassword < /path//assets/setup/DBcreation.sql"

@msaad1999
Copy link
Owner

sorry for the late reply.

  • it might help knowing what DBMS or server you are using, for example, the most common DBMS for web related applications is phpmyadmin.
  • Another possibility might be that the default table type for your DBMS might be different (it is InnoDB for phpmyadmin, as far as i know with my past experiences). This might be the more likely issue, since such a problem could result in the id columns not being recognized as auto-incrementing columns. It might help to manually set the database type to InnoDB at the start of the sql file. if that does not work, try erasing the InnoDB parameter at the end of each table entirely.

@msaad1999
Copy link
Owner

Clarification: In the last step, i am referring to these parameters at the end of the table declarations in the SQL dump file:

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

2 participants