I am using docker to deploy my laravel app and it does work when I echo "DB_HOST=blabla" and so on into .env file in Dockerfile. When I docker run with -e="DB_HOST=blabla" etc, and then run a docker exec command on the container with php artisan migrate, it DOES migrate. BUT, when I visit the website, ..
I try to change a ddev database password for a single project. I need to check sign-escaping for a project, because I want to know how and if that works. How can I change a database password in a single ddev-project? I use Docker 3.5.1 (66090) ddev 1.17.2 macOS Catalina 10.15.7 I got answers in ..
I’ve deployed wiki.js on AWS EC2 instance using docker. With installation Command as follows : docker run -d -p 8080:3000 –name wiki –restart unless-stopped -e "DB_TYPE=mysql" -e "DB_HOST=184.108.40.206" -e "DB_PORT=3306" -e "DB_USER=wikijs" -e "DB_PASS=wikijsrocks" -e "DB_NAME=wiki" requarks/wiki:2 I’ve referred wiki.js installation . DB container and wiki containers are running in the same instance, When I ..
I’m using WSL 2 and trying to connect to my MySQL database though my docker app container (Symfony 4.4). The other posts about this subject did not helped me to find a solution, that is why I asking you now. Don’t hesitate to ask me to add other files which can help us to get ..
I have a cftransaction code block that calls some function in a cftry and if this runs without an exception, it commits. Else, it rolls back in the catch. The function executes some queries (INSERT and UPDATE and all). The services (lucee and MySQL) run on docker. The issue is when I run the code, ..
I have two EC2 instances. vm1 – has mysql server running as a Docker container vm2 – has mysql client installed. Now I want to connect from vm2 to the mysql container running in vm1. In vm1, the container is exposed 3306 to the container port 3306 I tried first telnetting the port as: telnet ..
I need the federated engine in the entrypoint for pre populate database in the container. To enable the federated engine I wrote a bash script to manual insert the federated command to the my.cnf, but getting error below 2021-07-20 16:14:22+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/_enable_federated.sh sed: couldn’t open temporary file /etc/mysql/sedHjVLxp: Permission denied _enable_federated.sh #!/bin/bash ..
I am trying to connect to an external MySQL database with public IP from a Docker container with no success. The script I am trying to execute is Python with sqlalchemy and pymysql. The script works correctly if I execute it directly, but it fails when I try to execute it from the docker container. ..
I’m trying to connect my FASTAPI app container to a MySQL database container using the docker-compose file. In the Docker documentation it says that docker creates a default network for both containers. However, I would like to use a pre-existing network that I’ve created(app-net). This is my docker-compose file: version: ‘3.4’ services: mysql: image: mysql:latest ..
After starting the docker container I have a ready sql5.7 server. But I need to create a root user with the name "root" and grant him all privileges and access from outside. So I need these sql commands to execute after the container will be created. This is my docker-compose.yml version: ‘3.1’ services: mysql: container_name: ..