Skip to content
/ MySQL-check Public

Checks a MySQL database for invalid foreign keys, i.e., a keys pointing to missing rows.

License

Notifications You must be signed in to change notification settings

dg/MySQL-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQLChecker

Checks a MySQL database for orphaned records or invalid foreign keys, i.e., keys pointing to missing rows.

Create MySQLi object and then check database named blog:

$mysqli = new mysqli('localhost', 'root', 'password');
checkForeignKeys($mysqli, 'blog');

Or without parameter it checks all databases:

checkForeignKeys($mysqli);

If you like it, please make a donation now. Thank you!

About

Checks a MySQL database for invalid foreign keys, i.e., a keys pointing to missing rows.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages