array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-mysql.connect.php', 1 => 'Swoole\\MySQL::connect', 2 => 'Connect to the remote MySQL server.', ), 'up' => array ( 0 => 'class.swoole-mysql.php', 1 => 'Swoole\\MySQL', ), 'prev' => array ( 0 => 'swoole-mysql.close.php', 1 => 'Swoole\\MySQL::close', ), 'next' => array ( 0 => 'swoole-mysql.construct.php', 1 => 'Swoole\\MySQL::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/mysql/connect.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\MySQL::connect

(PECL swoole >= 1.9.0)

Swoole\MySQL::connectConnect to the remote MySQL server.

说明

public Swoole\MySQL::connect(array $server_config, callable $callback): void

Connect to the remote MySQL server.

参数

server_config

callback

返回值