View | Details | Raw Unified | Return to bug 22128
Collapse All | Expand All

(-)a/debian/scripts/koha-remove (-5 / +2 lines)
Lines 67-76 do Link Here
67
    then
67
    then
68
    # The grant creates the user in case it isn't, we don't want our loop to fail if it has already being deleted.
68
    # The grant creates the user in case it isn't, we don't want our loop to fail if it has already being deleted.
69
    mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof
69
    mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof
70
GRANT USAGE ON \`koha_$name\`.* TO \`koha_$name\`@\`%\`;
70
DROP USER IF EXISTS \`koha_$name\`@\`%\`;
71
GRANT USAGE ON \`koha_$name\`.* TO \`koha_$name\`@\`$mysql_hostname\`;
71
DROP USER IF EXISTS \`koha_$name\`@\`$mysql_hostname\`;
72
DROP USER \`koha_$name\`@\`%\`;
73
DROP USER \`koha_$name\`@\`$mysql_hostname\`;
74
DROP DATABASE IF EXISTS \`koha_$name\`;
72
DROP DATABASE IF EXISTS \`koha_$name\`;
75
FLUSH PRIVILEGES;
73
FLUSH PRIVILEGES;
76
eof
74
eof
77
- 

Return to bug 22128