M
M
Maga Izdaga2021-07-21 19:03:10
Heroku
Maga Izdaga, 2021-07-21 19:03:10

Is heroku friendly with mysql?

I deployed the project to heroku, everything is fine, everything works, the project, by the way, uses mysql. But when I go to the link to the page where the database is accessed, I get an error 500. Here I got a question: this problem appeared because Heroku is simply not friendly with mysql and it would be better to use postresql or I made some mistakes ? Prost at the final stage of development, everything worked, I even double-checked before deploying.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2021-07-21
@MagaVTanke

this problem appeared from the fact that heroku is simply not friendly with mysql and it would be better to use postresql or did I make some mistakes?
There are various Mysql providers for Heroku. When an addon is connected, the application should automatically get the environment variables for connecting to the database.
The application itself takes care of everything else.
So it's most likely the second one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question