openmediavault-mysql and docker container

  • Hi Guys,
    I'd like to connect nextcloud container with mysql database installed via OMV not container.
    Nextcloud container works on bridge mode 0.0.0.0:8080
    Every time i put information in nextcloud installation page it put me - SQLSTATE[HY000] [2002] Connection refused
    I suspect I have to host it somehow, but I have no idea how to do it. Can someone know how to do this?



    Best regards


    Jako

  • When you setup your mysql database you have to grant the user you want to use for nextcloud permission to access the database for nextcloud. Make sure, this user can login from '%' and not just localhost
    (possibly your docker ip would also work, I haven't tried that, yet)
    so in the sql management site:
    login as omvadmin, then under "tools", "user manager"
    select your nextcloud user and make sure under "host" you see %

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!