interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
3.99k stars 850 forks source link

Autofill database details in v4 #346

Closed Brugman closed 3 years ago

Brugman commented 3 years ago

Hiya. Love the app! Been using it for years.

In v3 the database details get autofilled from wp-config. In v4 they don't. I guess this was a conscious choice because it is more secure, but it also takes extra time. Is it possible (for us, end user devs) to configure v4 to autofill like v3?

gianluigi-icit commented 3 years ago

hello,

you are right we removed the feature for security reasons and I don't believe it's wise to bring it back even with some special flag. Many people just left the script on their server making a huge security mistake. Feel free to fork the project and add the feature, you will always welcome pull the changes from this repo and update your copy :smile:

planetahuevo commented 2 years ago

@gianluigi-icit would make sense to have a flag only available via CLI that capture the data from WP? If the user has access to CLI they already have access to the wp-config anyway. And only allowing this from CLI will still prevent the issue with the browser and people memory...

Thanks