admin_user and admin_password

I set admin_user and admin_password in grafana.ini. After grafana-server is restarted, the error “Login failed Invalid usern” is reported. Do I need other settings?

Use grafana-cli from terminal with the command: “grafana-cli admin reset-admin-password admin”