/mysql-foreign-key-checker

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

Primary LanguageRuby

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