Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\MySQL::closeSwoole\MySQL::__construct>
^Swoole\MySQLLast updated: Mon, 26 Oct 2026

Swoole\MySQL::connect

(PECL swoole >= 1.9.0)

Swoole\MySQL::connect — Connect to the remote MySQL server.

Description

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

Connect to the remote MySQL server.

Parameters

server_config

callback

Return Values


<Swoole\MySQL::closeSwoole\MySQL::__construct>
^Swoole\MySQLLast updated: Mon, 26 Oct 2026