aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2016-03-04 00:58:44 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-03-04 00:58:44 +0000
commitb54d021a617657a52308d66b2a47e15c17e96f70 (patch)
tree410b7ac21a28876b1d0a5d12d1c873c05d40d224
parent9b3a59957b52a74d5d4bb70b8ef4205764077d24 (diff)
parent240a6963c4a97628e5999828b24e9ecd3480efee (diff)
Merge "FIX:access denied on centos7"
-rwxr-xr-xdeploy/adapters/ansible/roles/database/files/remove_user.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/database/files/remove_user.sh b/deploy/adapters/ansible/roles/database/files/remove_user.sh
new file mode 100755
index 00000000..88b1518d
--- /dev/null
+++ b/deploy/adapters/ansible/roles/database/files/remove_user.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+mysql -uroot -Dmysql <<EOF
+use mysql;
+delete from user where user='';
+EOF