跳到主要内容

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.

有帮助 没有帮助

100 人中 47 人认为这个页面有帮助

添加一条评论

请登录或注册以提交评论。

是否需要密码提醒?