MySQL on Debian - Avoid to type the password in command line.
Just create a file .my.cnf in your home directory:
[client]
user = <yourusername>
password = <yourpassword>
Then you should be able to run mysql without being asked for username and password.
Really helpful but not to use in a long term since the password is plain text in your home directory.
Written by Thomas Gravina
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#