berngp / docker-zabbix

Docker Container running a Zabbix Server and Zabbix Web UI.
Other
160 stars 66 forks source link

Access denied for user 'zabbix' #7

Closed zyriuse75 closed 10 years ago

zyriuse75 commented 10 years ago

how can i connect to mysql in terminal with user root or zabbix ?

zyriuse75 commented 10 years ago

why each time after restart the container the database zabbix is dropped ? i play with your script start.sh for try to find a solution

berngp commented 10 years ago

@zyriuse75 the main intention of this container is to create a “simple” baseline to deploy Zabbix, in my case for development purposes. You could achieve what you mention in several ways, some of these are:

  1. Configure your Zabbix and when you are done “commit” your container. sudo docker commit -m"Your Message" -a"Your email" -p <container id>". After that you should have an image that reflects the configuration changes you applied to your Zabbix Server.
  2. Create a container based on this one that adds the SQL statements that will setup Zabbix the way you want.
  3. We could look into adding volumes to store the MySQL data.

To connect to the running MySQL the simplest thing is to update the Docker file to expose port 3306 and connect to it with a MySQL client.