MySQL connection failed: connect_failed

Error

I want to use MySQL to store some tables of ejabberd, so I installed the Erlang library to handle MySQL, configured ejabberd and created the tables. However, I still get this error message:
=ERROR REPORT==== 11-Oct-2006::20:56:52 ===
E(<0.220.0>:ejabberd_odbc:277): MySQL connection failed: connect_failed
And some more similar error messages.

Explanation

It seems ejabberd could not connect to the MySQL database. There are many different reasons.

Solution

When you configure and compile ejabberd, make sure to enable ODBC support:

./configure --enable-odbc

Related links

Syndicate content