Hi, most probably there should not be a space after -p. Try this mysql -h localhost -uroot -pmysql < did.query > did.out
Dobromir Velev [EMAIL PROTECTED] http://www.websitepulse.com/ ----- Original Message ----- From: "Marianadin, Didier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 13:12 Subject: mysql under unix in batch mode > Hi, > > I want to execute a simple query in batch mode in a mysql database. > my OS : Unix (solaris 2.6) > > when I run this command : > mysql -h localhost -u root -p mysql < did.query > did.out > > I'm always asked password even if I've already specified it in the previous > command line (mysql) > Enter password: > > How to avoid it ? > > Didier ([EMAIL PROTECTED]). > > > > > > > > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]