Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.
/ srdb Public archive

SRDB is a command-line tool for searching and replacing values within a database, designed not to damage serialised objects.

Notifications You must be signed in to change notification settings

dxw/srdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SRDB is a command-line tool for searching and replacing values within a database, designed not to damage serialised objects. It is intended for use when migrating WordPress databases but is suitable for any similar problem.

This command-line tool is almost entirely based on interconnect/it's excellent search & replace tool:

  http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

We just wanted something to run on the command-line, so we modified it.

Installation:

  Clone the repository at:

    https://github.com/dxw/srdb

  and run:

    $ git submodule update --init

Usage: 
  srdb [options] <search> <replace>

Arguments:

  search             String to look for
  replace            String to replace matches with

Options:

  -h <host>          MySQL server hostname. (Default: localhost)
  -p <password>      MySQL user's password
  -u <username>      MySQL account name (Default: root)
  -d <database>      MySQL database (Default: wordpress)
  --tables <tables>  Comma-separated list of tables to search within (Default: all tables)

About

SRDB is a command-line tool for searching and replacing values within a database, designed not to damage serialised objects.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages