Till Brehm
2014-02-22 99ca0f7a2374237ac20e205619da9fe8d49468d6
Fixed: FS#3261 - APS Deletes error folder
1 files modified
10 ■■■■■ changed files
server/lib/classes/aps_installer.inc.php 10 ●●●●● patch | view | raw | blame | history
server/lib/classes/aps_installer.inc.php
@@ -373,16 +373,18 @@
        
        /* Test if the new mysql connection is laready working to ensure that db servers in multiserver
           setups get enough time to create the database */
        if($this->handle_type == 'install') {
        for($n = 1; $n < 15; $n++) {
            $mysqli = new mysqli($newdb_host, $newdb_login, $newdb_pw, $newdb_name);
            if ($mysqli->connect_error) {
                unset($mysqli);
                $link = mysql_connect($newdb_host, $newdb_login, $newdb_pw);
                if (!$link) {
                    unset($link);
                sleep(5);
            } else {
                unset($mysqli);
                    unset($link);
                break;
            }
        }
        }
        $this->putenv[] = 'DB_'.$db_id.'_TYPE=mysql';
        $this->putenv[] = 'DB_'.$db_id.'_NAME='.$newdb_name;