Hello @luceos,
thank you for your quick reply. Is there then maybe something (I know from wp-cli for wordpress) that can send a SQL-query to flarum's mysql?
WordPress' wp-cli
has for example a wp db query
:
# Execute a query stored in a file
$ wp db query < debug.sql
Are there any volunteers, for writing an extension for something similar? 🙂
Then I could solve my problem with:
php flarum db "INSERT INTO users ( id, name, password) VALUES (1, 'Alice', MD5('pa$$word') );"
[1] https://developer.wordpress.org/cli/commands/db/query/