I tried to connect to my DB server using the hostname and the port in the file config.php but still give me error, I won't use the localhost server, the database is in other server.
I get the hostname using : show variables like '%hostname%'
and get the port using : SHOW VARIABLES WHERE Variable_name = 'port'
define('DB_USER', "test");
define('DB_PASSWORD', "test");
define('DB_DATABASE', "test");
define('DB_SERVER', "My problem is here");
someone know what I did wrong?
thank you
netstat -ntp | grep <PORT YOU GET>to find the server ip