주 콘텐츠로 건너뛰기

Using a Unix socket to connect to MySQL - 지식 베이스 / Deskpro Legacy - Deskpro Support

WARNING: You're browsing documentation for an older version of Deskpro. Consider upgrading to Deskpro Horizon

Using a Unix socket to connect to MySQL

저자 리스트

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.

도움이 되었습니다 도움이 되지 않음

이 페이지가 도움이 된다고 생각하는 사람들의 수 47 / 100