Setting up a new OwnCloud server on Ubuntu Server 16.04. Followed the manual install instructions to the letter, but cannot connect to the database. It makes no difference if the owncloud database is created in mariadb first or not.
The message on the owncloud setup page is "Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000]  Connection refused"
Any help is appreciated. Thanks.