How to connect an external MySQL Databaser to Owncloud?

mysql
9.1.x
help

#1

Hi,
I try to setup Owncloud with an external DB:

I setup a Mysql - DB in an external seperate Debian machine, i just did an LAMP Installation on this external machine.(10.10.0.87)
Now i deleted my owncloud config and Owncloud prompts me to Setup an new Admin and to select a DB, (if you delete the config it thinks you Installed OC from scratch).

After that i fill in all the needed stuff:


root
secretpw


Data
/var/www/owncloud/data


Mysql/MariaDB
root
secretpw
owncloud
10.10.0.87


The error shows this:

Error while trying to create admin user:
Failed to connect to the database: an exception occured in driver SQLSTATE[HY000]
[2003] Cant connect to MySQL Server '10.10.0.87'

Am i missing something? do i need to specify the path to the sql server in a different way?


#2

Can you connect to the database via command line?


#3

Are the permission rules on the database server for owncloud correct (right owncloud ip, password, permissions)?