I have a fix for the socket problem. Just ad in your database configuration a new parameter
PHP Code:
'socket' => '/tmp/mysql.sock', // if no socked uses set it to NULL
Then you have to make a small change in the core mysqli driver under /system/database/mysqli/mysqli_driver.php in the first method db_connect() a the end:
PHP Code:
return $mysqli->real_connect($hostname, $this->username, $this->password, $this->database, $port, $this->socket, $client_flags)
But remember it is not a good idea to change the core files, but for you to test an untill we have fixed this topic it could be a temporary help.