Error connecting from phpMyAdmin

jiro
TRIAL

8 months ago

I cannot connect to the MySQL server that i've created here from phpMyAdmin, i already set up the server config in the configinc.php file like this:

/**Second server*/

$i++;

/* Authentication type and info */

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['user'] = 'agendaUser';

$cfg['Servers'][$i]['password'] = 'KFgHmXmfEBtwHwBpPAnZswCobZgZassv';

$cfg['Servers'][$i]['extension'] = 'mysqli';

$cfg['Servers'][$i]['AllowNoPassword'] = false;

$cfg['Lang'] = 'es';

$cfg['port'] = '3306';

/* Bind to the localhost ipv4 address and tcp */

$cfg['Servers'][$i]['host'] = 'mysql://agendaUser:KFgHmXmfEBtwHwBpPAnZswCobZgZassv@mysql.railway.internal:3306/agenda';

$cfg['Servers'][$i]['connect_type'] = 'tcp';

But when i select the server and introduce the credentials for login i get a message saying that the server didn't authorized my access along with this error log: mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Unknown host.

The current host value is the value of environment variable $MYSQL_URL, i've also tried with the MYSQL_PUBLIC_URL or the MYSQL_HOST but everyone gets the same result

0 Replies

Error connecting from phpMyAdmin - Railway Help Station