Skip to main content

Using a Unix socket to connect to MySQL - Knowledgebase / Managing Deskpro On-Premise / Installation & Upgrades - Deskpro Support

Using a Unix socket to connect to MySQL

Authors list

In some circumstances you may want to use a Unix socket to connect to the database: for example, if networking is disabled in MySQL.

To do this, use a setting like this in your config.php:

 

define('DATABASE_HOST', 'unix_socket:/var/run/mysqld/mysqld.sock');

 

making sure the second parameter is unix_socket:  then the correct path to the socket.

Utli Mhux utli

35 ta' 83 nies li sabu din il-paġna utli

Add a comment

Please log in or register to submit a comment.

Need a password reminder?