搜索

大约有 21 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0987秒)

1.XSDatabasePDO_MySQL::makeDsn

... protected string makeDsn(array $param) $param array 包含 host, port, dbname {return} string 源码: sdk/php/util/XSDataSource.class.php#L877 (显示) protected function makeDsn($param){ $dsn = 'mysql:host=' . (isset($param['host']) ? $param['host'] : 'localhost'); if ...

2.XSDatabaseMySQLI::connect

...isset($param['pass']) ? $param['pass'] : ini_get('mysqli.default_pw'); $port = isset($param['port']) ? $param['port'] : ini_get('mysqli.default_port'); $this->obj = new mysqli($host, $user, $pass, '', $port); if ($this->obj->connect_error) { throw new XSException("Can not connect to ...

3.XSServer::connect

...(is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); ...

4.XSDatabasePDO_MySQL

... protected string makeDsn(array $param) $param array 包含 host, port, dbname {return} string 源码: sdk/php/util/XSDataSource.class.php#L877 (显示) protected function makeDsn($param){ $dsn = 'mysql:host=' . (isset($param['host']) ? $param['host'] : 'localhost'); if ...

5.XSDatabasePDO_PgSQL::makeDsn

...param){ $dsn = "pgsql:host={$param['host']};"; $dsn .= isset($param['port']) ? "port={$param['port']};" : ''; $dsn .= "dbname={$param['dbname']};client_encoding=utf-8"; return $dsn;} 生成 Postgres DSN

6.XSDatabasePgSQL::connect

...nect($param){ $dsn = "host={$param['host']} "; $dsn .= isset($param['port']) ? "port={$param['port']} " : ''; $dsn .= "dbname={$param['dbname']} user={$param['user']} password={$param['pass']}"; if (!($this->link = @pg_connect($dsn))) { throw new XSException('Error connecting to P...

7.RE: 关于使用过程的权限控制问题

更新时间:2014-09-30 00:09 t By qiuxis

...或者21的端口,直接复制,黏贴把21端口改成8384 # semanage port -l | grep 8384 看看这个端口有没有服务占用,如果显示: /usr/sbin/semanage: Port tcp/8384 already defined 说明这个端口被占用了,换一个没有被占用的端口吧。 如果8384没有...

8.RE: 导入索引,使用mysql数据源,但是端口号需要指定如果填写

发布时间:2014-09-29 10:09 t By longhtml

直接修改代码 sdk\php\util\XSDataSource.class.php 482行 $host .= (isset($param['port']) && $param['port'] != 3306) ? ':' . $param['port'] : '[b]:3399[/b]';

9.XSDatabaseMySQL::connect

...$param['host'] : ini_get('mysql.default_host'); $host .= (isset($param['port']) && $param['port'] != 3306) ? ':' . $param['port'] : ''; $user = isset($param['user']) ? $param['user'] : ini_get('mysql.default_user'); $pass = isset($param['pass']) ? $param['pass'] : ini_get('mysql.default_pw'...

10.XSDatabaseMySQLI

...isset($param['pass']) ? $param['pass'] : ini_get('mysqli.default_pw'); $port = isset($param['port']) ? $param['port'] : ini_get('mysqli.default_port'); $this->obj = new mysqli($host, $user, $pass, '', $port); if ($this->obj->connect_error) { throw new XSException("Can not connect to ...

123
  • 时间不限
  • 按相关性排序