Giter Site home page Giter Site logo

Comments (8)

nickwild-999 avatar nickwild-999 commented on August 17, 2024 3

Yes to be clear this process should work:

  1. find CONTAINER ID of percona server with docker ps
  2. find IP address of container with docker inspect CONTAINER ID | grep IPAddress
  3. change MAUTIC_DB_HOST in script to
    MAUTIC_DB_HOST=IPAddress:3306

from docker-mautic.

luizeof avatar luizeof commented on August 17, 2024

You need to setup the database

The compose.yml is inly a example

from docker-mautic.

sriram18981 avatar sriram18981 commented on August 17, 2024

Hi, I am having the same issue. I tried with the plain docker version as the example version (not with docker-compose), and ended up with the same issue as this.
Could you please elaborate on what needs to be setup as the database? is the MySQL DB up and running and linked to the mautic docker is not sufficient?

Any help on this would be greatly appreciated.

from docker-mautic.

bohuspollak avatar bohuspollak commented on August 17, 2024

Use following setup with correct MAUTIC_DB_HOST=172.17.0.2 for your environment.
Find IP using this way:
docker ps

note CONTAINER_ID

docker inspect CONTAINER_ID | grep IP
--- docker-compose.yml --
mautic:
image: mautic/mautic:latest
links:
- mauticdb:mysql
ports:
- 8081:81
volumes:
- mautic_data:/var/www/html
environment:
- MAUTIC_DB_HOST=172.17.0.2
- MYSQL_PORT_3306_TCP=3306
- MAUTIC_DB_USER=root
- MAUTIC_DB_PASSWORD=mysecret
- MAUTIC_DB_NAME=mautic

mauticdb:
image: mysql:5.6
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=mysecret
-- end of file --- docker-compose.yml--

from docker-mautic.

toman avatar toman commented on August 17, 2024

I had the same issue but finally got this docker-compose.yml file to work. https://gitlab.com/snippets/1894892 . I guess there must be a difference between how the Percona and MySQL images are built because MySQL logs showed a login failure.

from docker-mautic.

eltonjosesouza avatar eltonjosesouza commented on August 17, 2024

I had the same issue but finally got this docker-compose.yml file to work. https://gitlab.com/snippets/1894892 . I guess there must be a difference between how the Percona and MySQL images are built because MySQL logs showed a login failure.

not work for me :ยด(

from docker-mautic.

weisisheng avatar weisisheng commented on August 17, 2024

Really at a loss. This doesn't work for me at all. Once I look up the IP, say '172.17.0.2' then set the host for it while adding the port ":3306", I get the error "Access denied for user 'root'@'172.17.0.4' (using password: Y". It's as if the system can't find the db whatsoever. TIA for any tips & tricks. I've been considering hard coding the IP for the dbase container?

from docker-mautic.

chendelin1982 avatar chendelin1982 commented on August 17, 2024

It must MAUTIC_DB_USER=root, then it running ok

from docker-mautic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.