List:General Discussion« Previous MessageNext Message »
From:Adrian Phillips Date:March 10 2000 4:08pm
Subject:Re: Solaris 2.5.1 -- redirecting from file
View as plain text  
sinisa@stripped wrote:

> Paul Perkins writes:
>  > Dear all,
>  >
>  > I've a strange niggle that I've only encountered on Solaris.
>  >
>  > If I do:
>  >
>  >      mysql --user=fred -p databasename < create.sql
>  >
>  > rather than prompting for the password, mysql seems to use the first
>  > line of the file.
>  >
> Why don't you just:
>
> mysql -u=user -ppassword ..
>

Another possiblity allowing the password to be entered without copying
it to the shell history (using bash at least) :-

read -p "Enter password > " password
mysql --user=fred -p$password databasename
password=

Sincerely,

Adrian Phillips
Thread
Solaris 2.5.1 -- redirecting from filePaul Perkins8 Mar
  • Re: Solaris 2.5.1 -- redirecting from fileThimble Smith8 Mar
  • Re: Solaris 2.5.1 -- redirecting from filePaul Perkins8 Mar
    • Re: Solaris 2.5.1 -- redirecting from fileBenjamin Pflugmann10 Mar
  • Re: Solaris 2.5.1 -- redirecting from filesinisa8 Mar
  • Re: Solaris 2.5.1 -- redirecting from fileSteve Sobol10 Mar
    • Re: Solaris 2.5.1 -- redirecting from filesinisa10 Mar
  • Re: Solaris 2.5.1 -- redirecting from fileAdrian Phillips10 Mar