2020-04-28 16:22:42 +02:00
|
|
|
You need MySQL, MSSQL, PostgreSQL and Redis up and running.
|
2013-06-19 13:50:42 +02:00
|
|
|
MySQL should be accepting TCP connections on localhost:3306.
|
2020-04-28 16:22:42 +02:00
|
|
|
MSSQL should be accepting TCP connections on localhost:1433.
|
2013-06-19 13:50:42 +02:00
|
|
|
PostgreSQL should be accepting TCP connections on localhost:5432.
|
2018-07-15 09:14:47 +02:00
|
|
|
Redis should be accepting TCP connections on localhost:6379.
|
2014-07-09 17:28:14 +02:00
|
|
|
MySQL and PostgreSQL should grant full access to user 'ejabberd_test' with
|
2013-06-19 12:11:20 +02:00
|
|
|
password 'ejabberd_test' on database 'ejabberd_test'.
|
2020-04-28 16:22:42 +02:00
|
|
|
MSSQL should grant full access to user 'ejabberd_test' with
|
|
|
|
password 'ejabberd_Test1' on database 'ejabberd_test'.
|
2013-06-19 12:11:20 +02:00
|
|
|
|
|
|
|
Here is a quick setup example:
|
|
|
|
|
2014-07-09 17:28:14 +02:00
|
|
|
------------------
|
|
|
|
PostgreSQL
|
|
|
|
------------------
|
2013-06-19 12:11:20 +02:00
|
|
|
$ psql template1
|
|
|
|
template1=# CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test';
|
|
|
|
template1=# CREATE DATABASE ejabberd_test;
|
|
|
|
template1=# GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;
|
2023-10-04 21:15:07 +02:00
|
|
|
# If you disabled the update_sql_schema option, create the schema manually:
|
|
|
|
# $ psql ejabberd_test -f sql/pg.sql
|
2013-06-19 12:11:20 +02:00
|
|
|
|
2014-07-09 17:28:14 +02:00
|
|
|
-------------------
|
|
|
|
MySQL
|
|
|
|
-------------------
|
2013-06-19 12:11:20 +02:00
|
|
|
$ mysql
|
2014-05-04 01:02:22 +02:00
|
|
|
mysql> CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';
|
2013-06-19 12:11:20 +02:00
|
|
|
mysql> CREATE DATABASE ejabberd_test;
|
2014-05-04 01:02:22 +02:00
|
|
|
mysql> GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';
|
2023-10-04 21:15:07 +02:00
|
|
|
# If you disabled the update_sql_schema option, create the schema manually:
|
|
|
|
# $ mysql ejabberd_test < sql/mysql.sql
|
2020-04-28 16:22:42 +02:00
|
|
|
|
|
|
|
-------------------
|
|
|
|
MS SQL Server
|
|
|
|
-------------------
|
|
|
|
$ sqlcmd -U SA -P ejabberd_Test1 -S localhost
|
|
|
|
1> CREATE DATABASE ejabberd_test;
|
|
|
|
2> GO
|
|
|
|
1> USE ejabberd_test;
|
|
|
|
2> GO
|
|
|
|
Changed database context to 'ejabberd_test'.
|
|
|
|
1> CREATE LOGIN ejabberd_test WITH PASSWORD = 'ejabberd_Test1';
|
|
|
|
2> GO
|
|
|
|
1> CREATE USER ejabberd_test FOR LOGIN ejabberd_test;
|
|
|
|
2> GO
|
|
|
|
1> GRANT ALL TO ejabberd_test;
|
|
|
|
2> GO
|
|
|
|
The ALL permission is deprecated and maintained only for compatibility. It DOES NOT imply ALL permissions defined on the entity.
|
|
|
|
1> GRANT CONTROL ON SCHEMA ::dbo TO ejabberd_test;
|
|
|
|
2> GO
|
|
|
|
$ sqlcmd -U ejabberd_test -P ejabberd_Test1 -S localhost -d ejabberd_test -i sql/mssql.sql
|