How to connect to a Database Instance
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- A PostgreSQL or MySQL Database Instance
-
Click PostgreSQL and MySQL under Databases on the side menu. A list of your Database Instances displays.
-
Select the geographical region of the Instance you want to manage from the drop-down.
-
Click the database name or more icon > More info to access the Database Instance information page.
-
Retrieve the Database Instance IP and port from the Database Instance information section.
-
Connect to your database with the database client of your engine.
For MySQL, run the following command:
mysql -h <ip-address> --port <port> -p -u <user_name>
For PostgreSQL, run:
psql -h <ip-address> -p <port> -U <username> -d rdb
-
Enter the password that you defined upon Database Instance creation.
You are now connected to your Managed Database.
See Also
Still need help?Create a support ticket