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 6131463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:58:42+00:00 2026-05-23T16:58:42+00:00

I have a MySQL/InnoDB database set up with FK constraints. If I delete a

  • 0

I have a MySQL/InnoDB database set up with FK constraints. If I delete a row in a ‘root’ table, the dependent tables will have corresponding rows deleted.

How can I show what has been deleted, or at least which tables have been affected?

Is there any simple way or will I need to write a tool to compare before and after?

Would a replication log show what’s going on?

  • 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-23T16:58:42+00:00Added an answer on May 23, 2026 at 4:58 pm

    No, there is no way to show what was deleted
    No, it will not show up in replication log

    Only thing I can think of, is to query information_schema views to see what tables have FK constraints depending on ‘root’ table.

    SELECT DISTINCT
      TABLE_NAME FROM REFERENTIAL_CONSTRAINTS 
    WHERE 
      CONSTRAINT_SCHEMA = 'yourDatabase'
      AND REFERENCED_TABLE_NAME = 'rootTable'
      AND DELETE_RULE = 'CASCADE'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an enormous MySQL (InnoDB) database with millions of rows in the sessions
I have a MySQL-InnoDB table with 350,000+ rows, containing a couple of things like
Here's some background info. I have three MySQL tables (all InnoDB). The first table
In my MySQL installation I have one InnoDB database that I know will grow
I have a MySQL 5.0 database with a few tables containing over 50M rows.
I have a mySQl innodb database which has a couple of tables which store
I have a MySQL innodb database at 1.9GB, showed by following command. SELECT table_schema
I have an InnoDB MySQL database. When I export a SQL dump, how does
I have a MySQL InnoDB table on a RedHat Enterprise Linux 4 server, and
I have a MySQL InnoDB table with a status column. The status can be

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.