Comments (8)
Yes to be clear this process should work:
- find
CONTAINER ID
of percona server withdocker ps
- find IP address of container with
docker inspect CONTAINER ID | grep IPAddress
- change MAUTIC_DB_HOST in script to
MAUTIC_DB_HOST=IPAddress:3306
from docker-mautic.
You need to setup the database
The compose.yml is inly a example
from docker-mautic.
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.
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.
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.
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.
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.
It must MAUTIC_DB_USER=root, then it running ok
from docker-mautic.
Related Issues (20)
- How to upgrade from v4 to v5 HOT 2
- Mautic 5.0.3 FPM docroot issue HOT 2
- cronjob mautic:import won't work properly if added in cron/mautic
- Table 'messenger_messages' already exists - example/basic HOT 6
- Mautic seems to reinstall intself after taking pod down
- Update 5.0.4 HOT 9
- Docker composer is in bin but not working HOT 1
- Building own image fails
- docker images for 4.4.12 are missing on hub.docker.com HOT 2
- Mautic not installed problem HOT 1
- Email editor it is not possible to upload images grapesjsbuilder.assetManager.noAssets HOT 1
- On-the-fly asset generation is broken HOT 3
- Amazon SES on Mautic5 (docker-mautic image) HOT 1
- Title: Installation Issue with Mautic 5 using Docker: mQuery Function Error HOT 1
- [Suggestion] Mautic 5 - Plugins Install
- Mautic_cron can't access database due to no env variables in cron jobs HOT 1
- mautic:5.1-fpm cannot be installed - AppTestKernel.php is not found. It is not there HOT 13
- View Report - Visits published Pages show ip address as 127.0.0.1
- Mautic recreates the local.php file every time the service or container is restarted. HOT 1
- Missing enviromental variables in run time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mautic.