I cannot alter my table:
ALTER TABLE `Account` ADD FOREIGN KEY ( `pid` ) REFERENCES `mydb`.`Person` (
`pid`) ON DELETE RESTRICT ON UPDATE RESTRICT ;
getting error like
SQL error #1452 - Cannot add or update a child row: a foreign key constraint fails (`mydb`.`#sql-d64_8a`, CONSTRAINT `#sql-d64_8a_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `Person` (`pid`))
Any ideas