From b73b139f24c46f3f0378dadf014b3953c9472466 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 4 May 2014 01:02:22 +0200 Subject: 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. --- test/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/README') 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'; -- cgit v1.2.3