mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
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.
This commit is contained in:
parent
806c0e56e1
commit
b73b139f24
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user