Change Server Password In Digitalocean using Putty

Change Server Password 

First of all, yes you can change the password, in fact, it is quite simple.

1. Login to your droplet as root

2. type the command “passwd” (no quotes) and press enter

3. Type in your new password – PLEASE I BEG YOU… use something with upper and lower case and a number or two and a symbol

4. Confirm the password

5. YOU ARE DONE!

Change phpmyadmin Password using the below commands

  1- mysql -u root -p

  2- USE mysql;

    Output – Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

3- UPDATE user SET password=PASSWORD(‘yournewpassword’) WHERE User=’root’ AND Host = ‘localhost’;

 Output:

Query OK, 1 row affected (0.00 sec)

Rows matched: 1  Changed: 1  Warnings: 0

4-  FLUSH PRIVILEGES;

  Output

   Query OK, 0 rows affected (0.00 sec)

5-  exit;

  Output

Bye

You have new mail in /var/spool/mail/root

6- 

[root@centos-s-2vcpu-4gb-blr1-01 ~]# systemctl start mariadb

[root@centos-s-2vcpu-4gb-blr1-01 ~]# systemctl enable mariadb.service

Leave a Reply

Your email address will not be published. Required fields are marked *