Skip to content

Commit 8c5f549

Browse files
committed
Fixed: FS#894 - Improve mysql connection error handling in installer
Check if the mysql_connect function exists in the installer.
1 parent ed666d9 commit 8c5f549

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/install.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@
109109
$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]);
110110
unset($tmp_out);
111111

112+
// Check if the mysql functions are loaded in PHP
113+
if(!function_exists('mysql_connect')) die('No PHP mysql functions available. Please ensure that the PHP mysql module is loaded.');
114+
112115
//** Get MySQL root credentials
113116
$finished = false;
114117
do {

0 commit comments

Comments
 (0)