Skip to content

Search and replace text on an entire mysql database

License

Notifications You must be signed in to change notification settings

sumonst21/mysql-search-replace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Search and replace text on an entire mysql database

This class written in php, search a text massively on an entire mysql database and replace it by other one.

The usage is very simple:

// Create an instace of the class
$mysqlSearchAndReplace = new mysqlSearchAndReplace("myDatabase", "localhost", "root", "");

// Simple search and replace
$mysqlSearchAndReplace->searchAndReplace("old text", "new text");

// Case sensitive = true
$mysqlSearchAndReplace->searchAndReplace("Old Text", "New text", true);

// We specify the tables where search
$mysqlSearchAndReplace->searchAndReplace("old text", "new text", true, array('tableOne', 'tableTwo'));

Autor

About

Search and replace text on an entire mysql database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%