aboutsummaryrefslogtreecommitdiff
path: root/test/README
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-05-04 01:02:22 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-05-04 01:02:22 +0200
commitb73b139f24c46f3f0378dadf014b3953c9472466 (patch)
treed945a6c1f418322302ad756f4479d9f172011167 /test/README
parentDo not crash on version downgrade (diff)
test/README: Create MySQL test user on 'localhost'
Suggest specifying 'localhost' as host name part of the MySQL test account name. Otherwise, the anonymous user that is usually created by default for 'localhost' would take precedence for local connections due to the more specific host name.
Diffstat (limited to 'test/README')
-rw-r--r--test/README4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/README b/test/README
index 7ccd27454..d2aa5654a 100644
--- a/test/README
+++ b/test/README
@@ -12,6 +12,6 @@ template1=# CREATE DATABASE ejabberd_test;
template1=# GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;
$ mysql
-mysql> CREATE USER ejabberd_test IDENTIFIED BY 'ejabberd_test';
+mysql> CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';
mysql> CREATE DATABASE ejabberd_test;
-mysql> GRANT ALL ON ejabberd_test.* TO ejabberd_test;
+mysql> GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';