I've created a table in MySQL named 'ShoppingCart', but it shows error 1005. What's the mistake here?
mysql> create table ShoppingCart(
-> Current_Purchases varchar(100),
-> Previous_Purchases varchar(100),
-> Phone_No int(20),
-> constraint fk_shop foreign key (Phone_No) references Registration(Phone_No));
ERROR 1005 (HY000): Can't create table 'infoproject.shoppingcart' (errno: 150)
The other table 'Registration' is already created and the same column is present with the same datatype.