BlueMap-Minecraft / BlueMap

A Minecraft mapping tool that creates 3D models of your Minecraft worlds and displays them in a web viewer.
https://bluecolo.red/bluemap
MIT License
1.87k stars 128 forks source link

Webserver: SQL port configuration is not used #533

Closed mathitux closed 4 months ago

mathitux commented 5 months ago

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