Comments (11)
If you're using this docker-compose.yml
opencart:
image: vimagick/opencart
ports:
- "8000:80"
links:
- mysql
volumes:
- /var/www/html
restart: always
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=opencart
restart: always
The Hostname
should be mysql
(not localhost
).
from dockerfiles.
Thanks for your reply! After following your instructions, now I'm having another error - "php_network_getaddresses: getaddrinfo failed: Name or service not known" =/
from dockerfiles.
Please run this command:
docker exec your_opencart_container_name ping mysql
Make sure you can access mysql
inside opencart
container.
from dockerfiles.
ping: unknown host.
from dockerfiles.
Can it be an issue with the fact that I'm running the container on Kitematic?
from dockerfiles.
Nevermind, My MySQL container wasn't running. Thanks for your help!
from dockerfiles.
Hi, i am also using OpenCart Application and have hosted it on bluemix but i am stuck at the database Configuration which has been shown in the above image. How can i complete this information as i want to use bluemix database service instance. So, i am confused that which database service instance of bluemix i should use and how will i be able to configure OpenCart database configure settings on that bluemix database instance ? Please provide me any details regarding that.
from dockerfiles.
Run this command on your machine to make sure mysql service is up and running:
# You need create the database, or use the one that service provider gives to you
# Service provider may give you mysql instance which uses none-standard port number
$ mysql -h bluemix-mysql-server -P 3306 -u username -p opencart
Then type the correct parameters into the text fields.
from dockerfiles.
ok sure
from dockerfiles.
It's giving me an error while i am running this command which is "ERROR 2005 (HY000): Unknown MySQL server host 'bluemix-mysql-server' (0)". What to do to solve this issue.
from dockerfiles.
I haven't used mysql cloud service from bluemix yet.
You need to find the settings on its dashboard somewhere.
Don't use bluemix-mysql-server
, it's just a placeholder.
from dockerfiles.
Related Issues (20)
- Getting error - Back-off restarting failed container
- json-server: takes 10s to shut down HOT 2
- Publish/Document/etc Scrapyd ARM HOT 6
- urlwatch: cannot import name 'etree' from 'lxml'
- Can't use ES6 import file
- Request : dokerfile for mtn
- urlwatch - module xmpp reporter missing HOT 1
- urlwatch missing module: pyppeteer and others HOT 1
- Container Restarts Repeatedly HOT 3
- Request: Hillstone VPN
- [Feature Request] Ability to Ignore a Entry
- openconnect: use official package from Alpine HOT 1
- dnsmasq: update to 2.86 HOT 1
- Background command linux
- Unable to reach remote machines from Kubernetes pods using strongswan IPsec tunnel
- module xmpp reporter not installed HOT 2
- dnsmasq: update to 2.89 HOT 1
- Privoxy Fatal error: can't load re_filterfile '/etc/privoxy/default.filter': Invalid argument HOT 2
- openssh - root login will not work with no password HOT 1
- Request: dante ARM64/aarch64 v8 support 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 dockerfiles.