On Wednesday 26 March 2003 13:12, Marianadin Didier wrote: > 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 ?
Use mysql -h localhost -u root -proot_password mysql < did.query > did.out There is no space between -p and root password. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]