Erlang version 18.0 and ejabberd nodename conflict
<p>I wanted to install latest ejabberd from <a href="https://github.com/processone/ejabberd" rel="nofollow">https://github.com/processone/ejabberd</a>. For this, Erlang/OTP 18 is required. That too, i have manually installed from <a href="https://github.com/erlang/otp" rel="nofollow">https://github.com/erlang/otp</a>. Then, i need to start ejabberd server with command <code>ejabberdctl start</code>. But there is some error in that.
My mnesia node name is <code>akash@akash-Latitude-3450</code> and ejabberd nodename is <code>akash@localhost</code>. Due to this, server is not getting started. How to resolve this conflict ?</p>

<p>Log -></p>

<blockquote>
  <p>2016-01-07 18:38:20.410 [critical] &lt;0.39.0>@ejabberd_app:db_init:125 Node name mismatch: I'm [ejabberd@localhost], the database is owned by ['ejabberd@akash-Latitude-3450']  </p>
  
  <p>2016-01-07 18:38:20.410 [critical] &lt;0.39.0>@ejabberd_app:db_init:127 Either set ERLANG_NODE in ejabberdctl.cfg or change node name in Mnesia</p>
  
  <p>2016-01-07 18:38:20.410 [error] &lt;0.38.0> CRASH REPORT Process &lt;0.38.0> with 0 neighbours exited with reason: node_name_mismatch in ejabberd_app:db_init/0 line 129 in application_master:init/4 line 134</p>
</blockquote>