Error 1005 when Forward Engineering EER diagram
问题 I have created an EER diagram (as shown in the image bellow) in MySQL Workbench and wanted to Forward Engineer to build the DB. After configuring the model options to the Target MySQL Version and removing the word "Visible" from all the Indexes in the SQL Code (the code goes in the bottom of this post), as it was triggering an error, I have came across a 1005 Error: Executing SQL script in server ERROR: Error 1005: Can't create table `books`.`books` (errno: 150 "Foreign key constraint is