greyltc / docker-owncloud

Arch linux based docker container with owncloud
111 stars 37 forks source link

Integration MySQL Database #116

Open janluak opened 7 years ago

janluak commented 7 years ago

Hey guys, I run into a problem when trying to use a mysql database: for some reason inspect -f "{{ .HostConfig.Links }}" returns that my linking to another container worked out (output: [/MySQL-OC:/OwnCloud/mysql] or in one of my tries [/MySQL-OC:/OwnCloud/usr/sbin/mysql]). Yet, when starting the owncloud container no access to the mysql database is possible. If I enter the oc container and start mysql a mariaDB is started instead of my preferred mysql in a different container. Therefore, when trying to set up the owncloud, I get "SQLSTATE[HY000][1045] Access denied for user 'my-user'@'localhost' (using password: YES)". Any idea why? Thanks!