8000 Resolves #63: do not set default username in mongodb by zachcheung · Pull Request #79 · gobackup/gobackup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Resolves #63: do not set default username in mongodb #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

zachcheung
Copy link
Contributor

Before

2022/11/28 03:12:21 ------------- Databases -------------
2022/11/28 03:12:21 => database | mongodb : mongodb
2022/11/28 03:12:21 mongodump: mongodump --db=test --username=root --host=127.0.0.1 --port=27017  --out=/tmp/gobackup/1669633941145249568/demo/mongodb/mongodb
2022/11/28 03:12:21 [debug] /usr/bin/mongodump --db=test --username=root --host=127.0.0.1 --port=27017 --out=/tmp/gobackup/1669633941145249568/demo/mongodb/mongodb
2022/11/28 03:12:21 -> Dump error: 2022-11-28T03:12:21.155-0800 reading password from standard input
Enter password for mongo user:
2022-11-28T03:12:21.162-0800    Failed: can't create session: could not connect to server: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.

After

2022/11/28 03:12:49 ------------- Databases -------------
2022/11/28 03:12:49 => database | mongodb : mongodb
2022/11/28 03:12:49 mongodump: mongodump --db=test  --host=127.0.0.1 --port=27017  --out=/tmp/gobackup/1669633969626609970/demo/mongodb/mongodb
2022/11/28 03:12:49
2022/11/28 03:12:49 dump path: /tmp/gobackup/1669633969626609970/demo/mongodb/mongodb
2022/11/28 03:12:49
2022/11/28 03:12:49 ------------- Databases -------------

@huacnlee
Copy link
Collaborator

For works with MongoDB empty password?

@zachcheung
Copy link
Contributor Author
zachcheung commented Nov 28, 2022

For works with MongoDB empty password?

Yes.

Anyway I think set username to root in mongodb does not make sense.

@huacnlee huacnlee merged commit 5185006 into gobackup:main Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0