{"id":22487822,"url":"https://github.com/DvdGiessen/DBSR","last_synced_at":"2025-08-02T20:31:46.113Z","repository":{"id":5361127,"uuid":"6547489","full_name":"DvdGiessen/DBSR","owner":"DvdGiessen","description":"DBSR: Database Search \u0026 Replace","archived":false,"fork":false,"pushed_at":"2023-05-05T13:36:54.000Z","size":2914,"stargazers_count":37,"open_issues_count":3,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-15T00:14:45.897Z","etag":null,"topics":["database","dbsr","mysql","php","replace","search","search-replace","sql","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DvdGiessen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-05T16:20:44.000Z","updated_at":"2023-09-05T16:49:43.000Z","dependencies_parsed_at":"2024-11-24T12:19:30.629Z","dependency_job_id":null,"html_url":"https://github.com/DvdGiessen/DBSR","commit_stats":{"total_commits":50,"total_committers":10,"mean_commits":5.0,"dds":0.5800000000000001,"last_synced_commit":"eb40ac91a9c08aeb3cc44ea86eb6b50304b4e809"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvdGiessen%2FDBSR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvdGiessen%2FDBSR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvdGiessen%2FDBSR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DvdGiessen%2FDBSR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DvdGiessen","download_url":"https://codeload.github.com/DvdGiessen/DBSR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500214,"owners_count":17930015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","dbsr","mysql","php","replace","search","search-replace","sql","wordpress"],"created_at":"2024-12-06T17:17:17.159Z","updated_at":"2025-08-02T20:31:46.072Z","avatar_url":"https://github.com/DvdGiessen.png","language":"PHP","readme":"# DBSR: Database Search \u0026 Replace\n\nDBSR provides functionality for committing search-and-replace-operations on\nMySQL databases. It's main advantage above using a simple REPLACE()-SQL\nstatement is the support for parsing PHP serialized strings, which are commonly\nused in for example WordPress databases.\n\nSince DBSR does its own parsing of serialized strings, it is also able to repair\ncorrupted serializations, a problem often seen when less advanced search-replace\nscripts were used before on the same database.\n\n## Requirements\nMinimum supported PHP version is 5.3 and is tested with versions up to 7.4. PDO\nis used for connecting with the database, so make sure you have the `pdo` and\n`pdo_mysql` extensions enabled.\n\n## Usage\nFirst, head over to [the releases page](https://github.com/DvdGiessen/DBSR/releases)\nand download the latest version of DBSR.\n\nYou can either download the CLI version which you can use from the command\nline, or the GUI version which can be uploaded to a webserver and accessed\nthrough a web browser.\n\n*Note:* Some tutorials make you download this entire repository and put it on\nyour web server. I do not recommend this. For most users, just downloading the\nGUI version ([DBSearchReplace-GUI.php](https://github.com/DvdGiessen/DBSR/releases))\nand uploading that to your web server is the recommended way to use DBSR.\n\n*Note:* Another thing I see many tutorials recommend is using the `extensive\nsearch` option. In most cases, if you are just replacing plain text values\nin your WordPress database, you **should not** use this option. It will make\nDBSR extremely slow and is not needed, everything will work fine without it.\n\n### GUI version\n![Screenshot of the DBSR GUI](screenshot.png)\n\nThe GUI of DBSR provides a simple to use, 4 step wizard for performing search\nand replace operations on your database. It has a number of handy features for\nauto-detecting and completing your settings, offering some automated checks to\nhelp prevent common mistakes, and the ability to delete itself after you've\ncompleted all your work.\n\n### CLI version\nUsage of the CLI version is best explained by the built-in `--help` output:\n\n```\nUsage: DBSearchReplace-CLI.php [options] -- SEARCH REPLACE [SEARCH REPLACE...]\n       DBSearchReplace-CLI.php --file FILENAME\n\nCLI options:\n    --help                                  display this help and exit\n    --version                               print version information and\n                                            exit\n    --file FILENAME                         JSON-encoded config file to load\n    --output text|json                      output format (default: text)\nPDO options:\n    --host HOSTNAME                         hostname of the MySQL server\n    --port PORTNUMBER                       port number of the MySQL server\n    --user USERNAME                         username used for connecting to\n                                            the MySQL server\n    --password PASSWORD                     password used for connecting to\n                                            the MySQL server\n    --database DATABASE                     name of the database to be\n                                            searched\n    --charset CHARSET                       character set used for\n                                            connecting to the MySQL server\nDBSR options:\n    --case-insensitive [true|false]         use case-insensitive search and\n                                            replace (default: false)\n    --extensive-search [true|false]         process *all* database rows\n                                            (default: false)\n    --search-page-size SIZE                 number of rows to process\n                                            simultaneously (default: 10000)\n    --var-match-strict [true|false]         use strict matching\n                                            (default: true)\n    --floats-precision PRECISION            up to how many decimals floats\n                                            should be matched (default: 5)\n    --convert-charsets [true|false]         automatically convert character\n                                            sets (default: true)\n    --var-cast-replace [true|false]         cast all replace-values to the\n                                            original type (default: true)\n    --db-write-changes [true|false]         write changed values back to the\n                                            database (default: true)\n    --handle-serialize [true|false]         interpret serialized strings as\n                                            their PHP types (default: true)\n```\n\nFor an example of a configuration file, see [example-config.json](example-config.json).\n\n## Issues?\nIf you encounter any issues with DBSR, [open an issue on GitHub\n](https://github.com/DvdGiessen/DBSR/issues/new) and provide as much details as\npossible.\n\n## License\nDBSR is free software licensed under the GPLv3. See LICENSE for more information.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDvdGiessen%2FDBSR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDvdGiessen%2FDBSR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDvdGiessen%2FDBSR/lists"}