Child pages
  • Installing on Existing Databases

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default, Servoy comes bundled with the Sybase SQL Anywhere database engine PostgreSQL engine, a Servoy Repository database and a set of sample databases, but installing the installation of the engine and sample databases is optional in the installer.

In order to be able to start, the Servoy Application Server requires a connection to the Servoy Repository. When using existing databases, a valid connection to a properly configured Servoy Repository is required for the Servoy Application Server to be able to start. If you install Application Server on a new database engine(installed separately), you must create a repository database using your database tool, then specify the connection parameters during install (username, password, url ...). Servoy Application server will automatically create a repository server with these connection data, but in order to create all tables in repository database you must upgrade the repository.

Note
titleUsing an existing database for the [Servoy Repository]

See Servoy Repository Upgrade for information on creating or upgrading the Servoy Repository tables in an existing database.

After repository server is created , Servoy Application Server can be started and configured via admin page, see Configuring the Server You will have to create the databases manually using your database tool and create Servoy Servers from admin page before importing the solution. See Database Connections for more details

Depending on the type of databases used, JDBC drivers might need to be added. See JDBC Drivers in the Database Connections chapter for more information.

Using the Bundled PostgreSQL Engine i.c.w. Existing Databases

When the installation of the PostgreSQL database engine is required, keep the Database option in the All-In-One installer checked.

After installing the Servoy Application Server, the following steps are required to remove the sample databases and connect the PostgreSQL engine to existing PostgreSQL databases:

  • Start the database (see Starting the Database for more information)
  • Connect to the database using the commandline psql utility and drop the unwanted databases:

    Code Block
    titleConnecting
    {servoyInstall}/application_server/postgres_db/bin/psql postgres DBA
  • Code Block
    titleDropping the sample databases
    drop database if exists user_data;
    drop database if exists example;
    drop database if exists log_data;
    drop database if exists udm;
    drop database if exists pdf_forms;
    drop database if exists bug_db;
  • Restore a dump of the existing databases. For information on how to backup and restore databases, see this PostgreSQL documentation.