From 49ed785eb7bc27d16bfeee8d7e08efc2d5972f93 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Tue, 16 Apr 2013 23:29:55 +0200 Subject: [PATCH] Modifications: etc/mysql/bin/createuser . --- etc/mysql/bin/createuser | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/mysql/bin/createuser b/etc/mysql/bin/createuser index bf58fea..6d19c61 100755 --- a/etc/mysql/bin/createuser +++ b/etc/mysql/bin/createuser @@ -1,8 +1,5 @@ #!/bin/sh -eux user="$1" -sudo mysql -u mysql --batch <<-EOF || true - DROP USER '$user'@'localhost'; - EOF sudo mysql -u mysql --batch <<-EOF - CREATE USER '$user'@'localhost' IDENTIFIED WITH auth_socket; + CALL mysql.create_user($(user), 'localhost'); EOF -- 2.20.1