Can't connect sql database to laravel
totoalnormieTRIAL
7 months ago
17 2.650 SQLSTATE[HY000] [2002] phpnetworkgetaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known (Connection: mysql, SQL: delete from cache
)
17 2.650
17 2.650 at vendor/laravel/framework/src/Illuminate/Database/Connection.php:825
17 2.654 821▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
17 2.654 822▕ );
17 2.654 823▕ }
17 2.654 824▕
17 2.654 ➜ 825▕ throw new QueryException(
17 2.654 826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
17 2.654 827▕ );
17 2.654 828▕ }
17 2.654 829▕ }
17 2.654
17 2.654 +47 vendor frames
17 2.654
17 2.654 48 artisan:13
17 2.654 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))
17 2.654
17 ERROR: process "/bin/bash -ol pipefail -c composer install && php artisan optimize:clear && php artisan config:cache && php artisan key:generate && php artisan migrate --force" did not complete successfully: exit code: 1
[13/14] RUN composer install && php artisan optimize:clear && php artisan config:cache && php artisan key:generate && php artisan migrate --force:
2.654 826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
2.654 827▕ );
2.654 828▕ }
2.654 829▕ }
2.654
2.654 +47 vendor frames
2.654
2.654 48 artisan:13
2.654 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))2.654
ⓘ Deployment information is only viewable by project members and Railway employees.
0 Replies