Skip to content

Instantly share code, notes, and snippets.

@grafikchaos
Created September 20, 2013 17:09
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 grafikchaos/6640682 to your computer and use it in GitHub Desktop.
Save grafikchaos/6640682 to your computer and use it in GitHub Desktop.
Update DEFINER of database triggers in MySQL databases
perl -pi -e 's/DEFINER\=\`developer\`/DEFINER\=\`staging_user\`/g' my_database_dump_file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment