9 months ago
So, the deploy of my database is done but i cant connect, try connect for bash, and other but i cant, i paid the hobby plan, i don´t know but when i have a free plan the database port were 15732 but i try to create other service (mysql) and railway giveme port 3306, i don´t know if this is the problem, I try to deploy in laravel and laravel give me that:
$ php artisan migrate
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Host desconocido. (Connection: mysql, SQL: select table_name as name
, (data_length + index_length) as size
, table_comment as comment
, engine as engine
, table_collation as collation
from information_schema.tables where table_schema = 'railway' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)
at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825
821▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
822▕ );
823▕ }
824▕
➜ 825▕ throw new QueryException(
826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
827▕ );
828▕ }
829▕ }
1 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:65
PDOException::("PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Host desconocido. ")
2 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:65
PDO::__construct("mysql:host=mysql.railway.internal;port=13745;dbname=railway", "root", Object(SensitiveParameterValue), [])
AND i try to connect with bash and:
ERROR 2005 (HY000): Unknown MySQL server host 'mysql.railway.internal' (11001)
i don't know what happen, anyway know what can i connet to my database?
and yes, i copy correctly the variables
1 Replies
9 months ago
ok i can connect.
so, the problem is, railway give me the Public Networking when the plan were free, with the port and that, but now the envieroments dont have this, and i search the Public Networking and try with this and the public port and i can :)
Status changed to Solved brody • 9 months ago