Laravel app using Jaws Maria DB on Heroku getting MYSQL errors

10
January 12, 2019, at 5:10 PM

I have a Laravel app on Heroku using Maria DB as a Add on. My App is up and running. Everything works on my local. When I try to run heroku php artisan migrate to migrate my tables to DB, I am getting this error.

In Connector.php line 68:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

In Connector.php line 68:

PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known

I have added my Env vars to the Heroku dashboard. Once I added JAWS Marai DB it gave me the JAWS_MARIA_DB connection string but I have tried it with just this, I have deleted this var and added all the nexessary DB var from my .env and nothing is working. BTW I am using the DB values given to me from Heroku JAWS DB settings page and NOT the values from my local project.

Anyone have any idea.

Thanks!

READ ALSO
How can I modify the jetpack code so that when I publish a post and jetpack publish it on twitter does not show the url of the new post?

How can I modify the jetpack code so that when I publish a post and jetpack publish it on twitter does not show the url of the new post?

Hi ppl i need help with this because it shows the url in twitter and it comes from and ugly subdomain so i dont want to show the url of the new post just send a tweet with text

30
How to write ApplicationContext xml equivalent java code

How to write ApplicationContext xml equivalent java code

I want to make java based configurationI have already xml configuration in my project and it's worked

39
How to fix “mainflipSelectors[i].find” error in jQuery?

How to fix “mainflipSelectors[i].find” error in jQuery?

I am building a webpage where I need to display some details about a few peopleEach person's details is in the form of a card which goes by this structure:

39
How to use barcode scanner as keyboard input

How to use barcode scanner as keyboard input

I'm using model PowerScan PD1700 (Datalogic brand)I have 2 problems:

45