25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix documentation of mysql and pgsql configuration

This commit is contained in:
Badlop 2013-03-27 17:14:21 +01:00
parent 06a98ae6fa
commit e5cbcbdac5

View File

@ -1960,9 +1960,11 @@ You can skip this step if you installed \ejabberd{} using a binary installer or
if the binary packages of \ejabberd{} you are using include support for MySQL. if the binary packages of \ejabberd{} you are using include support for MySQL.
\begin{enumerate} \begin{enumerate}
\item First, install the \footahref{http://support.process-one.net/doc/display/CONTRIBS/Yxa}{Erlang \item First, install the Erlang mysql library from
MySQL library}. Make sure the compiled files are in your Erlang path; you can \footahref{http://www.ejabberd.im/ejabberd-modules/}{ejabberd-modules SVN repository}.
put them for example in the same directory as your \ejabberd{} .beam files. Make sure the compiled
files are in your Erlang path; you can put them for example in the same
directory as your \ejabberd{} .beam files.
\item Then, configure and install \ejabberd{} with ODBC support enabled (this is \item Then, configure and install \ejabberd{} with ODBC support enabled (this is
also needed for native MySQL support!). This can be done, by using next also needed for native MySQL support!). This can be done, by using next
commands: commands:
@ -2178,16 +2180,8 @@ module option \term{\{db\_type, odbc\}}.
\makesubsection{pgsql}{PostgreSQL} \makesubsection{pgsql}{PostgreSQL}
\ind{PostgreSQL}\ind{PostgreSQL!schema} \ind{PostgreSQL}\ind{PostgreSQL!schema}
Although this section will describe \ejabberd{}'s configuration when you want to This section describes how to create a MySQL database for ejabberd,
use the native PostgreSQL driver, it does not describe PostgreSQL's installation and configure \ejabberd{} to use it to store authentication and user data.
and database creation. Check the PostgreSQL documentation and the tutorial \footahref{http://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver}{Using ejabberd with MySQL native driver} for information regarding these topics.
Note that the tutorial contains information about \ejabberd{}'s configuration
which is duplicate to this section.
Also the file pg.sql in the directory src/odbc might be interesting for you.
This file contains the \ejabberd{} schema for PostgreSQL. At the end of the file
you can find information to update your database schema.
\makesubsubsection{compilepgsql}{Driver Compilation} \makesubsubsection{compilepgsql}{Driver Compilation}
\ind{PostgreSQL!Driver Compilation} \ind{PostgreSQL!Driver Compilation}
@ -2210,6 +2204,11 @@ PostgreSQL.
\end{verbatim} \end{verbatim}
\end{enumerate} \end{enumerate}
\makesubsubsection{pgsqlcreatedb}{Create PostgreSQL database}
\ind{PgSQL!Create database}
Before starting ejabberd, you need to create an ejabberd database in your PostgreSQL database.
\makesubsubsection{configurepgsql}{Database Connection} \makesubsubsection{configurepgsql}{Database Connection}
\ind{PostgreSQL!Database Connection} \ind{PostgreSQL!Database Connection}