This command will give you something like that, don’t worry to write it down because this information will be passed on as an environment variable. If you want connect with mysql workbench or mysql pro, you can use this information to connect your database. Just use your information properly and use 3306 as your port number.
(STEP-3) Set up database
Go to your laravel project and navigate to app\config\database.php and paste this lines of code before returning any database configuration.
create a connection like this
and, use your_heroku_mysql_connection as your default database connections
Your, database config should be like this
That’s it.
Thanks for taking your time to read, I do hope the article has helped you! If you liked this article don’t forget to clap.