List:General Discussion« Previous MessageNext Message »
From:Martin Ramsch Date:September 1 1999 3:33pm
Subject:Re: Solved: Mysqlaccess: Acess denied
View as plain text  
On Tue, 1999-08-31 16:57:52 -0700, Thimble Smith wrote:
> Usually the best way to handle it is to use single quotes (') around the
> word with special characters.  If that word itself contains single quotes,
> you can escape them with a backslash:
> 
>     $ mysql -p 'p$s!w\'(d'

On some shells (having Bash in mind) a single quote delimited string
simply can't contain single quotes and no character, not even the
backslash, has special meaning.  There you'd have to write
      $ mysql -p'p$s!w'\''(d'
(i.e. three strings seamlessly joined together: 'p$s!w' and \' and '(d')

Regards,
  Martin
-- 
Martin Ramsch <m.ramsch@stripped> <URL: http://home.pages.de/~ramsch/ >
PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26  E4 EC 80 58 7B 31 3A D7
Thread
Mysqlaccess: Acess deniedStephen R. Figgins1 Sep
  • Re: Mysqlaccess: Acess deniedsasha1 Sep
    • Solved: Mysqlaccess: Acess deniedStephen R. Figgins1 Sep
      • Re: Solved: Mysqlaccess: Acess deniedThimble Smith1 Sep
        • Re: Solved: Mysqlaccess: Acess deniedStephen R. Figgins1 Sep
        • Re: Solved: Mysqlaccess: Acess deniedMartin Ramsch1 Sep