From openSIPS

Documentation: Database Deployment - 2.4

Documentation -> Manuals -> Manual 2.4 -> Database Deployment

Pages for other versions: devel 3.4 3.3 3.2 3.1 Older versions: 3.0 2.4 2.3 2.2 2.1 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4


Database Deployment v2.4
PrevNext

After installing your OpenSIPS, most likely you will need to also deploy a database that you could use for various reasons ( DB user authentication, persistent registrations, dialogs, etc ).

The [Install_Path] token used throughout this page represents the installation path of OpenSIPS. This depends on the method of installation you chose. Common values you should look for are / if you installed OpenSIPS from public packages, or /usr if you installed it from sources, or whatever you explicitly set in your prefix variable.


Table of Content (hide)

  1. 1. Configuring DB Credentials
  2. 2. Creating the Database

1.  Configuring DB Credentials

Go to the [Install_Path]/etc/opensips/ folder and open the opensipsctlrc file

There take care of the following lines :

2.  Creating the Database

In order to create the DBNAME database that you have provisioned above, run

[Install_Path]/sbin/opensipsdbctl create

When prompted by the opensipsdbctl tool, please enter your DBROOTUSER password.

If you want to create a different database other than the default DBNAME, you can call

[Install_Path]/sbin/opensipsdbctl create my_custom_db_name

The opensipsdbctl tool can also be used for things like taking backups, doing restores, and more. If you want to see the capabilities and help manual for the opensipsdbctl tool, you can run it with no parameters :

[Install_Path]/sbin/opensipsdbctl
Retrieved from https://www.opensips.org/Documentation/Install-DBDeployment-2-4
Page last modified on November 11, 2019, at 10:56 AM