Skip to content

Test MySQL connection using native PHP functions #152

@adamziel

Description

@adamziel

Description

Testing the MySQL connection via new PDO() or mysqli_connect() would make the config create command more portable. At the moment, the connection test requires support for a proc_open function and a shell mysql client. Both are problematic in the context of WebAssembly WordPress Playground.

if ( ! Utils\get_flag_value( $assoc_args, 'skip-check' ) ) {
Utils\run_mysql_command( '/usr/bin/env mysql --no-defaults', $mysql_db_connection_args );
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions