title | excerpt | updated |
---|---|---|
Getting started with PostgreSQL |
Using Your Databases |
2023-02-15 |
Do you want to use PostgreSQL? Learn how to easily manage your databases!
- A Web Cloud Databases instance
- To have viewed the Web Cloud Databases guide
PostgreSQL is an object-relational database management system (ORDBMS). It's a reliable and extensible system, which can manipulate large volumes of data. It also has a very active community.
[!primary]
Please note that this service does not give you access to the Host but to the databases hosted on the Host. Generic SQL commands work with no issues, and HeidiSQL or SQuirreL SQL software is fully compatible.
To log in to your database, make sure that you have:
- The address of your database instance
- Your database port
- Your database username
- Your database password
- Your database name
All this information is available in the Web Control Panel{.external}.
There is also a guide here: Getting started with the Web Cloud Databases service{.ref}
psql --host=server --port=port --user=user --password=password database_name
1. <?php
2. $myPDO = new PDO('pgsql:host=host;port=port;dbname=dbname', 'username', 'password');
3. ?>
- Launch SQuirreL SQL and click on
Aliases
{.action}, then on+
{.action}
- Fill in the fields below and then confirm by clicking
OK
{.action} :- Name: Choose a name
- Driver: Choose "PostgreSQL"
- URL: Enter the server address and port in the following form jdbc:postgresql://server:port/database
- User Name: Enter the username
- Password: Enter the password
- Confirm again by clicking the button
Connect
{.action}
You will now be connected to your database:
Soon available in another guide.
pg_dump --host=server --port=port --user=username --password=password database_name > database_name.sql
psql --host=server --port=port --user=user --password=password database_name < database_name.sql
For specialised services (SEO, development, etc.), contact OVHcloud partners.
If you would like assistance using and configuring your OVHcloud solutions, please refer to our support offers.
Join our community of users.