Skip to Content
DocsDatabase EngineeringDatabase Connection

Database Connection

Database Connection allows Qubase to communicate with an existing database. Once connected, you can inspect database objects, import schemas, reverse engineer structures, and synchronize changes between your database and visual models.

A successful connection is the first step before using advanced Database Engineering features.

Before you begin

Before connecting a database, ensure that you have:

  • Access to a supported database system
  • Database connection credentials
  • Network access to the database server
  • Permission to read the database schema

[!NOTE] Connecting to a development or staging database is recommended instead of connecting directly to a production environment.


Supported database systems

Qubase supports connecting to supported relational database systems.

Depending on your project configuration, available systems may include:

  • PostgreSQL
  • MySQL
  • Microsoft SQL Server

Additional database systems may be supported in future releases.


Connection information

When creating a new connection, provide the required database information.

FieldDescription
Connection NameFriendly name used inside Qubase
Database TypeTarget database system
HostDatabase server address
PortDatabase server port
Database NameDatabase to connect to
UsernameDatabase login username
PasswordDatabase login password

Create a connection

To create a database connection:

  1. Open the Database Engineering module.
  2. Select Database Connections.
  3. Click New Connection.
  4. Enter the required connection information.
  5. Test the connection.
  6. Save the configuration.

If the connection is successful, the database becomes available for engineering tasks.


Test connection

Before saving the configuration, Qubase validates the connection.

The validation may include:

  • Server availability
  • Authentication
  • Database existence
  • Network accessibility
  • User permissions

If validation fails, Qubase displays the detected issue.


Connection status

Each saved connection displays its current status.

StatusMeaning
ConnectedDatabase is available
DisconnectedDatabase is currently unavailable
InvalidConnection configuration is incorrect
ErrorAn unexpected connection error occurred

Security recommendations

To help protect your database:

  • Use strong database credentials.
  • Connect using secure network configurations.
  • Limit database permissions to only what is required.
  • Avoid sharing database credentials.
  • Review saved connections regularly.

[!IMPORTANT] Never use highly privileged database accounts unless they are required for your engineering workflow.


What you can do after connecting

Once connected, you can:

  • Reverse engineer an existing database
  • Inspect database objects
  • Compare schema changes
  • Generate ERD diagrams
  • Synchronize database structures
  • Export SQL scripts

Troubleshooting

Unable to connect

Verify that:

  • The database server is running.
  • The host and port are correct.
  • Your username and password are valid.
  • Firewall rules allow access.
  • Your account has permission to access the database.

Authentication failed

Double-check your credentials and verify that your database user has the necessary permissions.


Last updated on