Hi Christoph and gang !
I'm trying to build our Fusio 5 server using ansible. I would like to create connections and users via the CLI. For the users it all works. But I'm having a heck of a time creating a connection via CLI.
I created a connection.json file with my connection info:
{ "name": "G-DB",
"class": "Fusio.Adapter.Sql.Connection.Sql",
"config": { "host": "10.0.0.98",
"driver": "pdo-mysql",
"port": "3306",
"username": "db-user",
"password": "password",
"database": "mydb"
}
}
Then I use this command: bin/fusio connection:create connection.json
But I get this error: The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). in /var/www/html/fusio/vendor/doctrine/dbal/src/Exception.php on line 79
Questions:
1) Any idea what else I need to define my connection properly for the CLI ?
2) Any documentation on the CLI that I can reference ? I've looked everywhere.
Thank you very much in advance!
Mathew