You can do it from the command line too:
mysql --host=<host> --user=<user> --password=<password> -D <database> -e "\
UPDATE core_config_data SET value = <1 or 0> WHERE 'dev/static/sign' = path; \
";
Then delete the cache:
bin/magento cache:clean