er: fix permission setting in mysql script to avoid noisy prompt