vim ~/.my.cnf
[client]
user=root
password=<your password>
to add more users just add more user and password in ~/.my.cnf
[mysql]
user=user
password=pass
[mysqladmin]
user=user
password=pass
vim ~/.my.cnf
[client]
user=root
password=<your password>
to add more users just add more user and password in ~/.my.cnf
[mysql]
user=user
password=pass
[mysqladmin]
user=user
password=pass