# Mautic MySQL-Socket Installation Problem on an 1und1.de Server

**URL:** <https://forum.mautic.org/t/mautic-mysql-socket-installation-problem-on-an-1und1-de-server/3672>\
**Category:** Product Support\
**Created:** [May 8, 2016, 10:22am UTC](https://forum.mautic.org/t/mautic-mysql-socket-installation-problem-on-an-1und1-de-server/3672 "2016-05-08T10:22:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlieper](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@schlieper](https://forum.mautic.org/u/schlieper)\
**Post date:** [May 8, 2016, 10:22am UTC](https://forum.mautic.org/t/mautic-mysql-socket-installation-problem-on-an-1und1-de-server/3672/1 "2016-05-08T10:22:42Z")

</div>

I have a problem to install Mautic 1.3.1 on a dedicated Ready to run server from [www.1und1.de](http://www.1und1.de).  
  
  
  
If I try to use the normal installation process with the 1und1 MySQLi Driver I always get the following Error:  
  
  
  
**_“An error ocurred while attempting to connect to the database: Can’t connect to local MySQL-Server through socket_**  
  
**_‘var/run/mysqld/mysqld.sock’ (2)”_**  
  
  
  
I have tried every combination of Hostname or Port. Mautic always tried to get another socket; 1und1-Server need the socket:  
  
  
  
/tmp/mysql5.sock  
  
  
  
Datenbankname : db4403XXXXX  
  
Hostname : localhost:/tmp/mysql5.sock  
  
OR  
  
Hostname : localhost  
  
Port : 3316  
  
OR  
  
Port:: 3306  
  
Benutzername : dbo4403XXXXX  
  
Version : MySQL5.0  
  
Socket : /tmp/mysql5.sock

---

<div class="post-metadata">

**Author:** ![schlieper](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@schlieper](https://forum.mautic.org/u/schlieper)\
**Post date:** [May 8, 2016, 10:22am UTC](https://forum.mautic.org/t/mautic-mysql-socket-installation-problem-on-an-1und1-de-server/3672/2 "2016-05-08T10:22:42Z")

</div>

I have a problem to install Mautic 1.3.1 on a dedicated Ready to run server from [www.1und1.de](http://www.1und1.de).

If I try to use the normal installation process with the 1und1 MySQLi Driver I always get the following Error:

“An error ocurred while attempting to connect to the database: Can’t connect to local MySQL-Server through socket  
‘var/run/mysqld/mysqld.sock’ (2)”

I have tried every combination of Hostname or Port. Mautic always tried to get another socket; 1und1-Server need the socket:

/tmp/mysql5.sock

Datenbankname : db4403XXXXX  
Hostname : localhost:/tmp/mysql5.sock  
OR  
Hostname : localhost  
Port : 3316  
OR  
Port:: 3306  
Benutzername : dbo4403XXXXX  
Version : MySQL5.0  
Socket : /tmp/mysql5.sock

---

<div class="post-metadata">

**Author:** ![schlieper](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@schlieper](https://forum.mautic.org/u/schlieper)\
**Post date:** [May 12, 2016, 9:17am UTC](https://forum.mautic.org/t/mautic-mysql-socket-installation-problem-on-an-1und1-de-server/3672/3 "2016-05-12T09:17:47Z")

</div>

I have solved my problem with the new version 1.4.0 and the following additional php.ini File:

mysql.default\_socket = “/tmp/mysql5.sock”  
mysqli.default\_socket = “/tmp/mysql5.sock”
