MySQL
5.6.12のChangeLogを読んでいて不思議に思った--connect-expired-passwordオプションのメモ。
オプションの説明を読んでもいまいちピンと来なかった。
どうやらpassword_expiredが'Y'になっている(rpmとかでインストールした時はこうなる)と、
非対話モードでのログインができないらしい。
とりあえずためす。
mysql56> grant all on *.* to test;[さらに読む]
Query OK, 0 rows affected (0.05 sec)
mysql56> alter user test password expire;
Query OK, 0 rows affected (0.00 sec)
$ mysql -utest -e "select current_user()"
ERROR 1862 (HY000): Your …