Re: 'mysql -h localhost -u root -p' shortcut??
perhaps this may do it:
alias my='mysql -uUsername -p'
You'd put this in your .bashrc file which is usually located in your user root directory (~username/). example, to connect to a
db you just do :
my DbName and then enter your password
hope this helps.
Subject
Written By
Posted
Re: 'mysql -h localhost -u root -p' shortcut??
July 28, 2005 08:38AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.