That is the primary table field (tasks table):
task_id int(10) UNSIGNED No None AUTO_INCREMENT
This is my foreign table field (url_error_stats table):
task_id int(10) UNSIGNED No None
url_error_stats doesnt present the "relation view" option to connect between the keys..why?
SQL query:
ALTER TABLE
url_error_statsADD FOREIGN KEY (task_id) REFERENCESaws_backlinks.tasks(
task_id) ON DELETE CASCADE ON UPDATE CASCADE ;
MySQL said:
1452 - Cannot add or update a child row: a foreign key constraint fails (
aws_backlinks., CONSTRAINT#sql-6f0_3bd_ibfk_1FOREIGN KEY (task_id) REFERENCEStasks(task_id) ON DELETE CASCADE ON UPDATE CASCADE)