Hello dear communtiy, Im trying to create custom pages keeping the IPS Wrapper and using IPS Pages.
Well, one of them requieres of using an external data base, however, I don't know the basic command lines in IPS to make it works.
I would like to get a tip about how to establish a connection.
I have triied this one, but sadly it didn't work.
$connection = \IPS\Db::i( 'external', array(
'sql_host' => 'localhost',
'sql_user' => 'username',
'sql_pass' => 'password',
'sql_database' => 'database_name',
'sql_port' => 3306,
'sql_socket' => '/var/lib/mysql.sock',
'sql_utf8mb4' => true,
) );
Best regards.