Skip to content

Instantly share code, notes, and snippets.

@roscius
Created July 30, 2014 02:27
Show Gist options
  • Select an option

  • Save roscius/5170f133d38840d1ccb3 to your computer and use it in GitHub Desktop.

Select an option

Save roscius/5170f133d38840d1ccb3 to your computer and use it in GitHub Desktop.
sed -E 's/DEFINER=`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g' non_portable_dump.sql > portable_dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment