Error Code: 1005 
Error Info:
Occurs when your SQL Statement is formed incorrectly when trying to create a table.This could also happen if there is no database to connect to therefore there is no database to create a table in!Another problem is when you want to make foreign key while there isn't any index on field!