Lines 66-74
do
Link Here
|
66 |
mysql_hostname="localhost" |
66 |
mysql_hostname="localhost" |
67 |
if [ "$keepmysql" != "1" ] |
67 |
if [ "$keepmysql" != "1" ] |
68 |
then |
68 |
then |
|
|
69 |
# 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 |
70 |
mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof |
70 |
DROP USER IF EXISTS \`koha_$name\`@\`%\`; |
71 |
GRANT USAGE ON \`koha_$name\`.* TO \`koha_$name\`@\`%\`; |
71 |
DROP USER IF EXISTS \`koha_$name\`@\`$mysql_hostname\`; |
72 |
GRANT USAGE ON \`koha_$name\`.* TO \`koha_$name\`@\`$mysql_hostname\`; |
|
|
73 |
DROP USER \`koha_$name\`@\`%\`; |
74 |
DROP USER \`koha_$name\`@\`$mysql_hostname\`; |
72 |
DROP DATABASE IF EXISTS \`koha_$name\`; |
75 |
DROP DATABASE IF EXISTS \`koha_$name\`; |
73 |
FLUSH PRIVILEGES; |
76 |
FLUSH PRIVILEGES; |
74 |
eof |
77 |
eof |