Database Configuration

     


     

     


     

    Configure the Database

    By default ServiceDesk Plus MSP supports PostgreSQL database. To switch over to SQL database, you need to configure SQL server to establish connection and start the server.

     

    Configuring PostgreSQL Database

    • Execute the changeDBServer.bat [changeDBServer.sh for Linux] file presented under the ServiceDesk Plus MSP Home directory. This opens the Database Setup Wizard page. Fill in the respective server details:

      • Server Type: Select the server type from the combo box. Say, PostgreSQL

      • Host Name: Enter the IP Address/ host name in which the database is available. The default host name is 'localhost'.

      • Port: Specify the Port. The default port is 1433.

      • Database:By default the database name will be servicedesk in non-editable format.

      • User Name:Specify the User Name to login to the server

      • Password: Specify the Password.

     

     

    • To check the availability of connection, click the Test button. A pop up window pops up showing 'Connection Established' message.

    • Click OK to proceed.

    • Click Save button to save the SQL server settings.

     

    Configuring MSSQL Server

    If you are using a remote MSSQL server and do not want to use the inbuilt server then,

    • Select Server Type as MSSQL server. This opens the database wizard page.
    • Specify the Host Name, Port, User Name & Password.
    • Click Test button and check the availability of the connection.
    • Once the connections are established, save the details and start the server.   

     

     

    Non GUI Users

    Run the changeDBServer.bat [changeDBServer.sh for Linux] under command prompt by passing parameter as given below,

     

    C:\[ServiceDesk Plus-MSP Home]\bin>changeDBServer.bat --console

    It will get the DB Server necessary information from the console.

    database_gui

     

    Connect to PostgreSQL Server

    ServiceDesk Plus MSP uses PostgreSQL as its default database.

     

    Connect to PostgreSQL Server in Windows

    • Go to [ServiceDesk Plus-MSP Home] \ pgsql \ bin in the command prompt.

    C:\> cd ManageEngine\ServiceDeskPlus-MSP\pgsql\bin

    • Enter the command: pgsql.exe -U postgres -p 65432 -w servicedesk

    C:\> cd ManageEngine\ServiceDeskPlus-MSP\pgsql\bin> psql.exe -U postgres -p 65432 -w servicedesk

    ServiceDesk is the name of the database. 65432 is the port on which ServiceDesk Plus MSP database runs. ServiceDesk Plus MSP uses root account to connect to the database and does not use any password. You can connect to PostgreSQL database only from the server console.

    pgsql-connect-windows

     

    Connect to PostgreSQL Server in Linux

    • Install the PostgreSQL client which supports your Linux version.

    • Once this is accomplished, make sure that the command "psql" is in path. (Most often, mysql should be under path, if not, you may add the complete path to psql command under PATH variable in the bashrc file.

    • Go to [ServiceDesk Plus-MSP Home] \ pgsql \ bin in the command prompt.

    # cd [ServiceDesk Plus-MSP Home]/pgsql/bin

    • Enter the command: pgsql.exe -U postgres -h localhost -p 65432 servicedesk

    pgsql-connect-linux

     

    Troubleshooting Tips

     

    PostgreSQL Connection Resolution

    Verify the following,

      • Check if PostgreSQL server is running.

      • Check if the server name or the port number is misspelled or incorrect.

      • If the PostgreSQL server is running in a remote machine then there may be a firewall blocking the port number you have entered.

      • If none of the above mentioned issues matches then contact your system administrator.

     

    MS SQL Connection Resolution

    If a connection is refused and an exception is thrown by SQL Server as 'unable to connect the server' then there could be following reasons why this could happen such as,

      • The server name is misspelled or the port number is incorrect

      • The SQL server may not configured to use TCP/IP. In this case, enable TCP/IP from SQL server's network utility application.

      • If there is a firewall blocking the port 1433 on the server then you will not be able to connect to the server.

      • To confirm the firewall block connect to TCP/IP use \"telnet<server_host>1433\"\n to confirm the block.

      • SQL Server Instance is not currently supported by ServiceDesk and will be available in the feature release. You can also connect to SQL Server named instance once if you know the machine name and port of the named instance.

      • Create new user with full privileges as shown below,  

    sql-server-login-properties

      • While configuring SQL server properties select the authentication type as SQL server as shown below. Windows authentication is not supported by ServiceDesk Plus MSP currently.

    sql_server_properties

     

     

     

    Zoho Corp. All rights reserved.