mysql -uroot -p'' still prompts for password when password is empty, but --password='' does the right thing