Skip to content

michaelirey/mysql-foreign-key-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages