eJabberd MySQL

# Instalace serveru
apt-get install ejabberd

# Doinstalovat potrebne baliky
apt-get install erlang-nox erlang-tools erlang-dev subversion

# Provedeme check out
mkdir /tmp/mysql
cd /tmp/
svn checkout http://svn.process-one.net/ejabberd-modules/mysql/trunk/ mysql

cd mysql
./build.sh

cd /tmp/mysql/ebin/
cp *.bean /usr/lib/ejabberd/ebin/

# Konfigurace MySQL
cd /usr/share/doc/ejabberd/examples
gunzip -d mysql.sql.gz

# Mysql
create database ejabberd;
GRANT ALL ON ejabberd.* TO ‘ejabberd’@’localhost’IDENTIFIED BY ‘nove_heslo_k _uctu’;
FLUSH PRIVILEGES;
mysql -u ejabberd -p ejabberd < mysql.sql

# zmena v konfigurace v /etc/ejabberd/ejabberd.cfg
{odbc_server, {mysql, “localhost”, 3306, “ejabberd”, “ejabberd”, “nove_heslo_k _uctu”}}.
{auth_method, odbc}.
{language, “cz”}.
{access, register, [{allow, all}]}.

# Registrace uzivatele
ejabberdctl register mstefl rpi-web tajne_heslo