How to change MongoDB User Password

In this article, we will describe How to change MongoDB User Password.

Syntax to change MongoDB User Password:

db.changeUserPassword(username, password)

Where
username: The name of the user whose password we wish to change.
password: The user’s new password.

Permissions required to change are current use must have built-in role “userAdmin”.

Examples to change MongoDB User Password:
Continue reading How to change MongoDB User Password

How to change MySQL root password in Linux

In this article, we will see how to change MySQL root password in Linux. We can change the password with multiple methods, below are the few of them.

1. Update root user password using SET method:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD("admin@123"); flush privileges;

Continue reading How to change MySQL root password in Linux

How to start stop PostgreSQL on Ubuntu

This article covers how to start, stop and restart PostgreSQL on Ubuntu. This is PostgreSQL DBA routine task.
We are going to cover stop, start and restart using service and systemctl commands. But, not covering to kill the PostgreSQL process from Linux shell.

Stop Start and Restart PostgreSQL using service:

sudo service postgresql stop sudo service postgresql start sudo service postgresql restart

Examples for How to start stop PostgreSQL on Ubuntu:
Continue reading How to start stop PostgreSQL on Ubuntu