Checks a mysql database for foreign keys pointing to missing records.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
find-invalid-keys.rb

README.md

mysql-foreign-key-checker

Checks a mysql database for foreign keys pointing to missing records.

  1. Create the db.yml file in the same directory as this script.
   host: localhost
   port: 3306
   username: user
   password: pass
   database: db_name
  1. run ruby ./find-invalid-keys.rb