Use e a client section of the ~/.my.cnf file, and add the credentials there.
Set: chmod 600 ~/.my.cnf
[client]
user=root
password=somepassword
Use e a client section of the ~/.my.cnf file, and add the credentials there.
Set: chmod 600 ~/.my.cnf
[client]
user=root
password=somepassword