문제

Don't have much experience with Heroku. I have the app/db name, username, password, and I have permission to access, but I'm not sure how to connect to it or configure Heroku to keep track of it, like the db's on my other apps.

Thanks!

도움이 되었습니까?

해결책

It's been a while since I've done this so you might need to check that the format hasn't changed but remote databases in heroku are done through environment variables.

Try something like:

heroku config:add DATABASE_URL=mysql://username:password@serveraddress:3306/databasename
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top