Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverobbins/6e6310600d5869321420 to your computer and use it in GitHub Desktop.
Save steverobbins/6e6310600d5869321420 to your computer and use it in GitHub Desktop.
Get-Content dump.sql | Foreach-Object { $_ -replace 'DEFINER(.*)`magento-dbuser`@`localhost`','DEFINER$1`different-user`@`different-host`' } | Set-Content new.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment