Discuss

Connecting to a Database

On this page

Wappler’s powerful visual server-side tools allow you to easily connect to your Database in a few clicks.

Before you create your databse connection, make sure to setup the target(s) for your project (development / production) as this is required for the Database Connection.

Creating a Database Connection

The Database Connections you create are globally available for all your server actions across your project. You need to setup your Database Connection once, and then you can reuse it in all the steps which require a connection.

Open the Workflows Panel:

Screenshot_1|690x431

This is where Server Connect is located. You can also use the Alt + S shortcut to open it:

Screenshot_2|690x431

You will see the Database Connections option under Globals:

Screenshot_3|690x431

Right click Database Connections and select Add Database Connection:

Screenshot_4|690x431

In the Database Connection dialog, enter the details for your Database Connection (for the selected target):

Screenshot_5|690x431

Here you can select whether to create a direct database connection, to be used with the Database Manager:

Screenshot_6|690x431

Click the Save button, when you are done:

Screenshot_7|690x431

Your database connection has been successfully created:

Screenshot_8|690x431

If you are working with different targets and each of them has different database connection details, please set up your details per each target as explained here.