Skip to content

Commit

Permalink
Issue backdrop-contrib#419: Fix compatibility with MySQL on alternate…
Browse files Browse the repository at this point in the history
  • Loading branch information
totten authored and bugfolder committed Sep 7, 2024
1 parent 4274883 commit 7d5ca38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/db.bee.inc
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ function db_bee_mysql_options(array $db_info, $include_db = TRUE) {
. "password='" . rawurldecode($db_info['password']) . "'" . PHP_EOL
. "host=" . $db_info['host'] . PHP_EOL;

if (isset($db_info['port']) && is_numeric($db_info['port'])) {
$temp_file_contents .= "port=" . $db_info['port'] . PHP_EOL;
}

// Get the temporary directory.
$temp_dir = bee_get_temp();
// Create a temporary file for the username, password and host.
Expand Down

0 comments on commit 7d5ca38

Please sign in to comment.