i have postfix dovecot and roundcubemail i have just changed some settings under password config.inc.php
$config['password_driver'] = 'sql';
$config['password_confirm_current'] = true;
$config['password_minimum_length'] = 8;
$config['password_require_nonalpha'] = false;
$config['password_log'] = false;
$config['password_login_exceptions'] = null;
$config['password_hosts'] = array('localhost');
$config['password_force_save'] = true;
// SQL Driver options
$config['password_db_dsn'] = 'mysql://user:pass@localhost/roundcube';
// SQL Update Query with encrypted password using random 8 character salt
$config['password_query'] = 'UPDATE users SET crypt=ENCRYPT(%p,CONCAT(_utf8\'$5$\',RIGHT(MD5(RAND()),8),_utf8\'$\')) WHERE id=%u LIMIT 1';
mysql -u root -p
mysql > GRANT SELECT,UPDATE ON roundcube.users TO 'roundcube'@'localhost';
mysql > FLUSH PRIVILEGES;
mysql > quit
now i have error as below
[02-Dec-2015 18:53:50 +0545]: DB Error: SQLSTATE[28000] [1045] Access denied for user 'roundcube'@'localhost' (using password: YES) in /usr/share/roundcubemail/program/lib/Roundcube/rcube_db.php on line 158 (POST /roundcubemail/?_task=settings&_action=plugin.password-save?_task=&_action=)
Pls suggest me thank you