Webserver: SQL port configuration is not used
mathitux opened this issue ยท 0 comments
What i did / Steps to reproduce
In the sql.php file generated by the plugin in the web folder (to be placed on a custom web server), the $port parameter for specifying a custom SQL port is not used, but the var is defined on the user config part.
The line "$sql = new PDO("$driver:host=$hostname;dbname=$database", $username, $password);
" is missing the ";port=$port
".
The line should be:
$sql = new PDO("$driver:host=$hostname;port=$port;dbname=$database", $username, $password);
With this modification, the issue is solved.
Thanks !
Context
BlueMap Version:
Bluemap 3.20 - Pufferfish - Minecraft 1.20.4