mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #603] Non default database password #508
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#508
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ondrousn on GitHub (Sep 10, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/603
Hello, I would like to change default database password, as using just npm does not seem really secure to me.
I changed the password in both docker-compose.yml and config.json files (from documentation), but am now failing with
Access denied for user 'npm'@'172.19.0.3' (using password: YES)database error and can not log into web UI.I tried switching to mysql container with root account and altering the password for npm user and everything works fine after that, but I would like to set the password using json and yaml before running
docker-compose up -d.Please is this somehow possible and where is the problem?
@andrej-g commented on GitHub (Sep 13, 2020):
The MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD variables are only used when initializing a fresh instance of the MySQL/MariaDB image (see https://hub.docker.com/_/mariadb, Initializing a fresh instance).
So either you'll have to recreate the database container from scratch with your new username/password or drop to the container console and modify the password manually.
edit: in the container console you'll have to specify the hostname/ip to mysql, e.g. "mysql -h 172.xxx.yyy.zzz -u root -p" to force a TCP connection, otherwise it wont connect, for some reason. see: https://mariadb.com/kb/en/installing-and-using-mariadb-via-docker/#connecting-to-mariadb-from-outside-the-container