3

I have just started playing with ejabberd server for XMPP stuff. I could setup it up successfully on a VPS using the default Mnesia database.

Now I am trying to configure ejabberd to use a mysql database (instead of Mnesia). I am following the documentation. I have done everything except install the Erlang MySQL library. Unfortunately, the link they give in the document is broken. The link is: https://support.process-one.net/doc/display/CONTRIBS/Yxa.

By, googling I could fing this github repo that claims to be an extension and enhancement of the driver that is linked on ejabberd documentation.

I WOULD LIKE TO KNOW WHAT IS THE RECOMMENDED ERLANG MYSQL LIBRARY (TO WORK WITH EJABBERD).

Leonel Machava
  • 1,501
  • 11
  • 19

2 Answers2

2

I found here a supposedly enhanced version of the library. According to the site:

This MySQL driver for Erlang is based on the Yxa driver obtained from Process One (at https://support.process-one.net/doc/display/CONTRIBS/Yxa) It includes several new features such as prepared statements, transactions, binary queries, type-converted query results, more efficient logging and a new connection pooling mechanism.

I installed erlang tools on my ubuntu instance that allowed me to compile the library.

Leonel Machava
  • 1,501
  • 11
  • 19
0

There are a lot of forks of emysql driver in the wild b/c of original driver is no longer maintained, but recent news I heard that it was picked and improved, check this repo

danechkin
  • 1,306
  • 8
  • 15