Commit c8a36971 authored by Per Cederqvist's avatar Per Cederqvist

Created the grant-bugs helper script.

parent caf06a6b
#!/bin/sh
db_pass=`sed -n "s/\\\$db_pass = '\(.*\)';/\1/p" /var/www/bugzilla/localconfig`
echo "Need to root mysql password to give grants to the new bugs user."
mysql -u root -p -e "GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'; FLUSH PRIVILEGES"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment