James Austin wrote:
> 
> I put this line (with no space after the -p) in the .bashrc file and
> sourced it;
> 
> alias mysql='mysql -u root -p"big_secret"'
> 
> It gets me in ok.  Van suggested the mysql way putting this in a .my.cnf
> file in my home directory.
> [client]
> user=username
> password=big_secret
> 

The .bashrc trick works, but .my.cnf or my.cnf is platform-nonspecific.  Many of
the readers of the list don't use *n*x workstations.

However, those who do can take advantage of other bourne-again shell tricks
like:
trap "~/.logout" 0
at the end of .bashrc .profile or .bash_profile where .logout is chmod-ded +x
and contains commands to do clean-up tasks upon exiting the shell.  

But, of course we're heading off-topic.

Van
-- 
=================================================================
Linux rocks!!!   http://www.dedserius.com/
=================================================================

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to