I am trying to do the simplest of tasks, adding a single relationship to my table and having no luck in the process.
I have two tables, one
users and the other
user_business is additional, optional details that a
users can have.
For this situation, I was going to make it a
1-1 identifying relationship since you can’t have additional details without a user.
In the tool I am using, MySQL Workbench, I clicked on the
1 - - - 1 icon and selected both tables. I tried selecting them both in the opposite order to rule that out.
Once the relationship has been created, I try to update a record that is in
user_business with a value of
0 on the
userid to a value of
1 which will match the id of the user in the
When I do this, I get the following error:
Operation failed: std::exception Executing: UPDATE
ERROR 1451: 1451: Cannot delete or update a parent row: a foreign key constraint fails (`crowd`.`users`, CONSTRAINT `fk_users_user_business` FOREIGN KEY (`user_business_userid`) REFERENCES `user_business` (`userid`) ON DELETE NO ACTION ON UPDATE NO ACTION) SQL Statement: UPDATE `crowd`.`user_business` SET `userid`='1' WHERE `userid`='0'
user_business. What step am I missing here?
After hovering over every icon, I found one that allows me to create relationships between existing columns. I think that was what I needed this whole time. Will update if this is not the case.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!