<p>There seems to be a problem with the opensipsdbctl create when you try to create postgresql database. The script tries 3306 port instead of 5432</p>

<p>opensipsdbctl create<br>
PGSQL password for postgres:<br>
INFO: creating database ewisbc ...<br>
psql: could not connect to server: Connection refused<br>
        Is the server running on host "mydb" (1.1.1.6) and accepting<br>
        TCP/IP connections on port 3306?<br>
ERROR: Creating database failed!</p>

<p>Adding </p>

<p>DBPORT=5432</p>

<p>to the opensipsctlrc solves the problem.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/485">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQGYfXAdM5T3sh9O9AHehWHOa-Cpks5oEUROgaJpZM4EMADE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/485"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>