Skip to content

Instantly share code, notes, and snippets.

@sadjow
Created July 11, 2013 20:01
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 sadjow/5978706 to your computer and use it in GitHub Desktop.
Save sadjow/5978706 to your computer and use it in GitHub Desktop.
How to remover a DEFINER from MySQL
cat new_schema.sql | sed -e 's@/\*!500[0-9][0-9] DEFINER=[^\*]*\*/@@' > new_schema2.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment