How can I make MySQL client read password from mylogin.cnf?
use following command to set login path first


  mysql_config_editor set --login-path=lgpath --user=root -p
  password


and then use below command to login mysql


  mysql --login-path=lgpath 


Help about mysql login path options can bee seen by


  mysql_config_editor set --help