Commit 8c5f5493 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#894 - Improve mysql connection error handling in installer

Check if the mysql_connect function exists in the installer.
parent ed666d97
...@@ -109,6 +109,9 @@ exec('hostname -f', $tmp_out); ...@@ -109,6 +109,9 @@ exec('hostname -f', $tmp_out);
$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]); $conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]);
unset($tmp_out); unset($tmp_out);
// Check if the mysql functions are loaded in PHP
if(!function_exists('mysql_connect')) die('No PHP mysql functions available. Please ensure that the PHP mysql module is loaded.');
//** Get MySQL root credentials //** Get MySQL root credentials
$finished = false; $finished = false;
do { do {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment