Skip to content

Commit

Permalink
Merge pull request #150 from tkmtmkt/patch-6
Browse files Browse the repository at this point in the history
アンインストール時にalminiumユーザを削除する
  • Loading branch information
mikoto20000 committed Aug 28, 2014
2 parents 4b4773a + 14cd314 commit 4db87a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions config/createdb.sql
@@ -1,4 +1,2 @@
create database alminium DEFAULT CHARACTER SET utf8;
create user 'alminium' identified by 'alminium';
grant all privileges on alminium.* to alminium@localhost IDENTIFIED by 'alminium';

CREATE DATABASE alminium DEFAULT CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON alminium.* TO alminium@localhost IDENTIFIED BY 'alminium';
5 changes: 4 additions & 1 deletion uninstall
Expand Up @@ -14,7 +14,10 @@ read YN

if [ "$YN" = "y" ]
then
mysql alminium -e "drop database alminium"
mysql alminium -e "REVOKE ALL ON alminium.* FROM alminium@localhost"
mysql alminium -e "DELETE FROM mysql.user WHERE User LIKE 'alminium'"
mysql alminium -e "FLUSH PRIVILEGES"
mysql alminium -e "DROP DATABASE alminium"
rm -fr /opt/alminium /var/opt/alminium
fi

Expand Down

0 comments on commit 4db87a5

Please sign in to comment.