MySQL - localhost is not a part of '%'
http://stackoverflow.com/questions/16287559/mysql-adding-user-for-remote-access
はまった。%以外にlocalhostにも設定が必要とのこと。
$ /usr/bin/mysql -u root -p$MYSQL_ROOT_PASS -e"grant all privileges on db.* to user@'%' identified by '$MYSQL_VS_PASS'"; $ /usr/bin/mysql -u root -p$MYSQL_ROOT_PASS -e"grant all privileges on db.* to user@'localhost' identified by '$MYSQL_VS_PASS'";