Please, add support for MySQL port in PDO DSN. It will be very helpful with non-standard installations (for example, I use an Amazon RDS and I can not use standard MySQL port, so as a workaround I add ';port=NNN' to the 'host' key of $mysql_credentials).
Please, add support for MySQL port in PDO DSN. It will be very helpful with non-standard installations (for example, I use an Amazon RDS and I can not use standard MySQL port, so as a workaround I add ';port=NNN' to the 'host' key of $mysql_credentials).
hook:php :
$mysql_credentials = [ 'host' => 'localhost', 'port' => 12345, // add this line 'user' => 'dbuser', 'password' => 'dbpass', 'database' => 'dbname', ];
longman/telegram-bot/src/Telegram.php , function enableMySQL:
-- $dsn = 'mysql:host=' . $credentials['host'] . ';dbname=' . $credentials['database']; ++ $dsn = 'mysql:host=' . $credentials['host'] . ';port=' . $credentials['port'] . ';dbname=' . $credentials['database'];
Thank you and compliments, great lib! :)