php8.5
Home/ Manual/ swoole / mysql/ Swoole\MySQL::connect

Swoole\MySQL::connect

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Connect to the remote MySQL server.

Description

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

Connect to the remote MySQL server.

Parameters

server_config
callback

Return Values

Source: reference/swoole/swoole/mysql/connect.xml · from the official PHP manual (php/doc-en)