Category : database-connection

I pulled pgAdmin4 docker image into my linux debian machine and followed the process specified here to configure the container. I run docker run -p 8000:8000 –env-file ./pgadmin_docker_env.list -d dpage/pgadmin4. For clarity, the pgadmin_docker_env.list specified in the command contains the environmental variables:: [email protected] PGADMIN_DEFAULT_PASSWORD=my_password. With the container running in detached mode, I run localhost:8080 in ..

Read more

I pulled pgAdmin4 docker image into my linux debian machine and followed the process specified here to configure the container. I run docker run -p 8000:8000 –env-file ./pgadmin_docker_env.list -d dpage/pgadmin4. For clarity, the pgadmin_docker_env.list specified in the command contains the environmental variables:: [email protected] PGADMIN_DEFAULT_PASSWORD=my_password. With the container running in detached mode, I run localhost:8080 in ..

Read more

I have a problem with connection to MSSQL Docker database created from docker-compose.yml file and additional .sql file with ready-to-go empty database configuration. To connect to the MSSQL database i have used DBeaver. During the connection this error occured: Login failed for user ‘system’. ClientConnectionId:23649321-6526-4ec2-a6ed-9943e64ca019 Probably i have wrong docker-compose.yml file or wrong .sql configuration ..

Read more

Halo, I am following this guide to create a local WordPress Setup: https://davidyeiser.com/tutorials/docker-wordpress-theme-setup which worked quite well, but now I am trying to connect with MYSQLWorkbench and it never works. yml file: version: ‘3’ services: db: image: mysql:5.7 volumes: – db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: – ..

Read more

I have two containers: python and mariadb. Since the domain name is the container name in docker i used host as <container_name>, but it fails to connect. The following is my docker-compose.yaml version: "3" services: db: container_name: mydb image: mariadb restart: always ports: – "3307:3306" environment: MYSQL_ROOT_PASSWORD: maria volumes: – ./sql_scripts:/scripts – hyacinth_db:/var/lib/mysql web: build: ..

Read more

i wanted to dockerize my laravel app. i launched two containers of mysql and php like this sudo docker pull mysql/mysql-server:latest sudo docker run –name=mysql -e MYSQL_ROOT_PASSWORD=mypass -d mysql/mysql-server:latest sudo docker pull phpmyadmin/phpmyadmin:latest sudo docker run –name phpmyadmin -d –link mysql:db -p 8081:80 phpmyadmin/phpmyadmin so i configured my user and imported my db manually in ..

Read more

I’m trying to connect my Oracle-DB container to SqlDeveloper and I’m getting this common error. Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection I wanted to check host or port info but I don’t know how to reach tnsnames.ora file of a Docker container. On the other hand, ..

Read more

I run the code from https://github.com/aiordache/demos/tree/master/dockercon2020-demo which is from some official docker blog. I get mysql.connector.errors.InterfaceError mysql.connector.errors.InterfaceError: 2003: Can’t connect to MySQL server on ‘db:3306’ (111 Connection refused) I even tried some solutions like self.cursor.execute(‘GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’) or putting in the port number: self.connection = mysql.connector.connect( user=user, password=pf.read(), host=host, database=database, port=’3306′ ..

Read more

Hello im new to Docker and i cant solve this Problem. Here is my code and my containers log docker-compose.yml version: ‘3’ services: app: build: context: . dockerfile: Dockerfile command: bundle exec rails s -p 3000 -e development -b ‘0.0.0.0’ depends_on: – database ports: – ‘3000:3000’ volumes: – .:/app – gem_cache:/usr/local/bundle/gems – node_modules:/app/node_modules environment: RAILS_ENV: ..

Read more