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

  • Home
  • SEARCH
  • 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 456573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:29:04+00:00 2026-05-12T22:29:04+00:00

A client of mine recently formatted his machine and re-installed MySQL Server and my

  • 0

A client of mine recently formatted his machine and re-installed MySQL Server and my application. He complained that deleting records from master table is not affecting the child tables. I requested him to send the backup of the database. When I restored the database, I found that the Table Engine has changed to MyISAM whereas they were set to InnoDB.

I deleted the records from the child table that were absent in the primary table. After this when I am not re-setting the Foreign Key Index, it displays error: “Foreign key contraint failed. Error 1005” and sometimes error: 150.

I have double checked the rows that might be left in either the primary table or in the child table, but nothing seems to be working.

The primary table has two columns that combinedly form a Primary Key. The columns are: BillNo, BillDate.

Please assist.

  • 1 1 Answer
  • 1 View
  • 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-12T22:29:04+00:00Added an answer on May 12, 2026 at 10:29 pm

    This is a widely known MySQL pitfall; I have hit this problem a few times myself. They probably had some problem with InnoDB, and restored their database from backups. Since InnoDB wasn’t working, it fell back to the MyISAM storage engine which doesn’t support integrity constraints (like foreign keys).

    Basically the problem is that, if the InnoDB engine fails to start for whatever reason (usually configuration problems) — then MySQL silently falls back to the MyISAM engine. Even if your statement says:

    CREATE TABLE () ENGINE=InnoDB
    

    then, if InnoDB isn’t active, MySQL will happily create a MyISAM table without even warning you. Bye-bye data integrity! 🙂

    You can run SHOW ENGINES to see which engines are active. See this MySQL bug report for more details.

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

Sidebar

Related Questions

I have a web application that I am hosting, and a client of mine
I'm writing an Android app for a client of mine that will display his
A client of mine has had his OpenX ad server hacked. This is the
I have a SQL Server 2005 instance running and a client of mine deleted
A client of mine that is going to be selling photographs where customers can
A client of mine has an application written in Classic ASP and COM+. The
I have recently been developing a newsletter for a client of mine. How ever
A client of mine is looking to convert a critical 'application' based on multiple
A client of mine wants me to make a high performance, reliable server which
A client of mine has a major application written and running in excel 2003

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.