パスワードオプションの設定
「-p」とパスワードの間にスペースを入れるとダメらしい
[user@web1.aaa ~]$ mysql -uadmin -h db1m -p 'パスワード'
Enter password: ERROR 1045 (28000): Access denied for user 'admin'@'xxx.xxx.xxx.xxx' (using password: YES)
間を詰めると入れました
[user@web1.aaa ~]$ mysql -uadmin -h db1m -p'パスワード'
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: 5.5.9-log MySQL Community Server (GPL) by XXX Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
「--password=」のオプションでも同様のようです
[user@web1.aaa ~]$ mysql -uadmin -h db1m --password='パスワード' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 20 (略)
ちなみにパスワードは''で括らなくても入れました。