How do I remove all lines containing a phrase via Bash from a big text file?

Method 1 (faster to execute)

grep -v '!999999\\- enable the sandbox mode' dump.sql > temp && mv temp dump.sql

Method 2 (shorter to write)

sed -i '/!999999\\- enable the sandbox mode/d' dump.sql

stackoverflow.com/questions/5410757

How do I fix «ERROR at line 1: Unknown command '-'» on importing a MySQL dump back to a database?