sql error errno: 121
Solution 1:
You have two constraints called company.cid_FK
. Rename one.
Solution 2:
For errors like this, you can find more information with 'perror'. i.e.
shell $ perror 121
MySQL error code 121: Duplicate key on write or update
Win32 error code 121: The semaphore timeout period has expired.