I have several of the same settings for VDS Ubuntu 16.04. On the first login as root in the SHH-client (Putty) I type
root@local:~# mysql and enter this DBMS without entering a password.
On other VDS in the same way is not included in mysql - writes:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) If you enter
mysql -u root -p and then type the password mysql-root, then enters.
Answer: Why do I need to enter a password on other VDS, but not on the first?
PS On all VDS root-ubuntu and root-mysql passwords are different.