]> granicus.if.org Git - ejabberd/commitdiff
test/README: Create MySQL test user on 'localhost'
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 3 May 2014 23:02:22 +0000 (01:02 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 3 May 2014 23:02:22 +0000 (01:02 +0200)
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

index 7ccd27454ea9b4f28f75486ae038d8a15e8f7b12..d2aa5654ab2c40c08591ea182f07567932428ccb 100644 (file)
@@ -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';