Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6381829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:26:40+00:00 2026-05-25T02:26:40+00:00

Well I’ve gotten 100+ answers to my questions on Stack Overflow, but it’s time

  • 0

Well I’ve gotten 100+ answers to my questions on Stack Overflow, but it’s time I finally registered and posted my first question!

Alright, I have a table for the users of my program and 11 tables attached to this table with 1:1 and 1:M relationships. Most of the foreign keys are set to ON UPDATE CASCADE ON DELETE RESTRICT. If I delete the center table, it allows me to, despite the foreign keys that should be in place. When I have dealt with relational databases before, I would receive these error messages:

#1217 - Cannot delete or update a parent row: a foreign key constraint fails
#1452 - Cannot add or update a child row: a foreign key constraint fails

Now mind you, this is one time I actually want error messages. I want the functionality of a relational database and all of my tables are InnoDB. Google has not helped me with this and I could not find anything in the MySQL documentation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:26:40+00:00Added an answer on May 25, 2026 at 2:26 am

    This post on the MySQL forums came close but did not detail exactly what needs to be done to fix this. Basically:

    service mysqld stop
    cd /var/lib/mysql
    mkdir old
    mv ib* old
    vim /etc/my.cnf
    servie mysqld start
    

    For the vim, make sure innodb_buffer_pool_size, innodb_log_file_size, and innodb_log_buffer_size are set properly. Another post on the MySQL forums had a bit of misconfiguration, namely that innodb_log_file_size needs to be 25% of innodb_buffer_pool_size, so I have 16M, 4M, and 8M for these three respectively.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well... simple question, right? But with no so simple answers. In firefox i use
Well, first I know that this question was already asked several times. But I
Well, it may actually be a simple case but I'm having a tough time
Well normally if using depth-first traversal, we get O(n) time. However, if we find
Well, I have a application which somehow requires some system resources, but how do
Well after much messing about I have finally got a query that gives sales
Well I created a jquery mobile form but the every element is in a
Well, sorry for the question, is more like a general culture one (haven't found
Well, I know there is a lots of posts about it, but I have
Well, I have to revive a question that was answered here before. I've made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.