I have searched for this question on the internet, but found only topics the other way around. (connecting to a mariadb in a docker container).
I'm in the process of installing nextcloud in conjuction with onlyoffice. Now i need to configure a db. I could go with sqlite, but don't want to use that for this.
MariaDB runs fine, it's listening (netstat -antup | grep 3306):
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4880/mysqld
But nextcloud keeps saying:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
I have created the database and user and granted this user the nessesary permissions according to the nextcloud documentation.
At the database field i just enter: 127.0.0.1:3306
I just can't figure out why it doesn't connect, any ideas?
If you want the config i can give it you, but it's nothing special, just standard config with two rows extra because nextcloud requires the following:
transaction_isolation = READ-COMMITTED
binlog_format = ROW
Thanks for your help!
Best Regards,
Mart1250