]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberd.cfg.example: Added example configuration of databases.
authorBadlop <badlop@process-one.net>
Mon, 26 Nov 2007 21:29:14 +0000 (21:29 +0000)
committerBadlop <badlop@process-one.net>
Mon, 26 Nov 2007 21:29:14 +0000 (21:29 +0000)
SVN Revision: 988

ChangeLog
src/ejabberd.cfg.example

index 70737479c43f555c2b6c7427ce1772f924e644ce..d83430b749bcffaed6ba8c30dd02c92af8566f67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-11-26  Badlop  <badlop@process-one.net>
 
+       * src/ejabberd.cfg.example: Added example configuration of databases.
+
        * doc/guide.tex: Fixed several typos.
 
        * src/ejabberd_config.erl: Print error when the configuration 
index 9b61e61bc4fe2651e6445d3803b9e6d275c4f416..f2e6bdda8c90458c4dfe6a1f0a6ee66a89a35da5 100644 (file)
 %%{auth_method, external}.
 %%{extauth_program, "/path/to/authentication/script"}.
 
+%%
+%% Authentication using ODBC
+%% Remember to setup a database in the next section.
+%%
+%%{auth_method, odbc}.
+
 %%
 %% Authentication using PAM
 %%
 %% Password to LDAP manager:
 %%{ldap_password, "******"}. 
 
-%%
-%% Authentication using ODBC
-%%
-%%{auth_method, odbc}.
-%%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.
-
-%%
-%% If you use PostgreSQL, have a large database, and need a
-%% faster but inexact replacement for "select count(*) from users"
-%%
-%%{pgsql_users_number_estimate, true}.
-
 %%
 %% Anonymous login support:
 %%   auth_method: anonymous
 %%{host_config, "public.example.org", [{auth_method, [internal, anonymous]}]}.
 
 
-%%%   ================
-%%%   DATABASE STORAGE
+%%%   ==============
+%%%   DATABASE SETUP
+
+%% ejabberd uses by default the internal Mnesia database,
+%% so you can avoid this section.
+%% This section provides configuration examples in case
+%% you want to use other database backends.
+%% Please consult the ejabberd Guide for details about database creation.
+
+%%
+%% MySQL server:
+%%
+%%{odbc_server, {mysql, "server", "database", "username", "password"}}.
+%%
+%% If you want to specify the port:
+%%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.
+
+%%
+%% PostgreSQL server:
+%%
+%%{odbc_server, {pgsql, "server", "database", "username", "password"}}.
+%%
+%% If you want to specify the port:
+%%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.
+%%
+%% If you use PostgreSQL, have a large database, and need a
+%% faster but inexact replacement for "select count(*) from users"
+%%
+%%{pgsql_users_number_estimate, true}.
 
-%% ejabberd uses by default the internal Mnesia database.
-%% For instructions about using other database backends,
-%% please consult the ejabberd Guide.
+%%
+%% ODBC compatible or MSSQL server:
+%%
+%%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.
 
 
 %%%   ===============