Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MySQL in CLI #116

Closed
adamziel opened this issue Jan 17, 2023 · 1 comment
Closed

Support MySQL in CLI #116

adamziel opened this issue Jan 17, 2023 · 1 comment

Comments

@adamziel
Copy link
Collaborator

Emscripten supports proxying raw socket traffic through websockets. In theory, the CLI version of PHP could reach MySQL server and not be constrained to SQLite.

@adamziel
Copy link
Collaborator Author

adamziel commented Jan 30, 2023

MySQL is now supported! See #119:

> node ./build-cli/php-cli.js -a
Interactive shell

php > $pdo = new PDO('mysql:host=127.0.0.1; port=55001; dbname=wordpress_develop_tests','root','pw');
php > $r = $pdo->query('select * from pet');
php > print_r( $r->fetchAll() );
Array
(
    [0] => Array
        (
            [name] => Dog
            [0] => Dog
            [owner] => Homer
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant