How do I connect a managed database to my laravel app

Posted October 23, 2019 5.3k views

I have been trying to connect my laravel application to the managed database i’m using on digital ocean, but I seem to be getting the whole thing wrong.
I’d love any assistance I can get.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @dblacktin,

I’ll recommend you to check the following article - Connect to a Managed Database

It’s for Ubuntu but it will still let you know what command to use to connect to a managed database.


by Mark Drake
If you're new to working with managed databases, the best way to perform certain tasks, like connecting to the database, may not be self-evident. In this guide, we will go over how to install client programs for a variety of database management systems, including PostgreSQL, MySQL, and Redis, on an Ubuntu 18.04 server. We'll also explain how to use these programs to connect to a managed database instance.