Issue Bug Closed

#76022Database Connection don't work on 1&1 Servers

Paul Kamma 05/03/16, 10:23 updated 05/03/16, 14:55

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.