Category : mariadb

I’am trying to connect to mysql for creating an database using containers and i can’t get to mysql, i have build my app using this Dockerfile: FROM ubuntu:20.04 RUN apt-get update RUN apt-get install -y mariadb-server EXPOSE 3306 FROM node WORKDIR /node/app COPY package*.json package-lock*.json COPY . . RUN npm install RUN npm install -g ..

Read more

I am trying to connect to a mysql instance running inside a local Docker Container, but I am getting a ERROR 1045 (28000): Access denied for user ‘root’@’172.17.0.1’ I initialized the container by running: docker image pull mariadb:10.4 docker run –name mariadbtest -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=user -e MYSQL_DATABASE=test -e MYSQL_PASSWORD=password -e MYSQL_ROOT_HOST=localhost -p 3306:3306 -d ..

Read more

I am trying to connect Laravel with mariadb via php artisan. When I try to run inside the web container (Dolibarr) the command php artisan tinker DB::connection()->getPdo(); I get the answer PDOException with message ‘SQLSTATE[HY000] [2002] Connection refused’ About my local setup for development: I have 2 Docker containers: MariaDB Dolibarr My docker-compose.yml : version: ..

Read more

I have tarball a linux distro into a docker image. Then, used this image to run the container. #!/bin/bash -x #https://docs.docker.com/engine/admin/multi-service_container/ /etc/init.d/mysql start status=$? if [ $status -ne 0 ]; then echo "Failed to start mysql: $status" exit $status fi fwconsole start if [ $status -ne 0 ]; then echo "Failed to start fwconsole: $status" ..

Read more

I’m using a MariaDB docker image and keep getting the Warning: [Warning] Access denied for user ‘root’@’localhost’ (using password: NO) This is my docker file used to create the image: FROM mariadb:10.6.4 ENV MYSQL_ROOT_PASSWORD pw ENV MARIADB_DATABASE db1 ENV MARIADB_USER user1 ENV MARIADB_PASSWORD user1pw Most of the solutions google found was running some kind of ..

Read more