Project

General

Profile

Actions

Bug #76022

closed

Database Connection don't work on 1&1 Servers

Added by Paul Kamma over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2016-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

After filling out the Database credentials in the "Database connection" step it always returns the error.

"Database connect not successful
Connecting to the database with given settings failed. Please check."

It's a 1&1 managed server with mySql 5.5..
So there is no need to use the socket server so i used the TCP/IP connect with localhost and default port.

What I've noticed is that when I copy paste the DBConnection codefrom the DatabaseConnection.php into an empty php file and set the values it connects.

$host_name  = 'localhost';
$database   = null;
$user_name  = "USERNAME";
$password   = "PASSWORD";
$link = mysqli_init();
$test = $link->real_connect(
    $host_name,
    $user_name,
    $password
);

var_dump($test);
// returns true

When I paste the exact same code into the DatabaseConnection.php it returns false

typo3 7.6.6.

Actions

Also available in: Atom PDF