Laravel App Service - mysql.railway.internal failed: Name or service not known

timmsy1998
HOBBY

4 months ago

Hey guys,

I wonder if you can help.

I'm attempting to deploy to railway, and I followed the guide on your website regarding monolithic setup.

My app server is refusing to connect to the mysql database, throwing the following error on build

FAIL

   Illuminate\Database\QueryException 
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known (Connection: mysql, SQL: delete from `cache`)

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822

    818$this->getName(), $query, $this->prepareBindings($bindings), $e
    819▕                 );
    820▕             }
    821▕ 
  ➜ 822throw new QueryException(
    823$this->getName(), $query, $this->prepareBindings($bindings), $e
    824▕             );
    825▕         }
    826▕     }
      +47 vendor frames 

  48  artisan:16
      Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

I wonder if you're able to help at all?

Solved

0 Replies

timmsy1998
HOBBY

4 months ago

8ce62946-4340-42fd-b37a-ca0699e2d202


timmsy1998
HOBBY

4 months ago

Don;t worry about this, i've sorted it.

I was being an idiot it seems


4 months ago

!s


Status changed to Solved uxuz 5 months ago