I am also facing the same problem after freshly installing mariadb in Kubuntu 15.04. I am able to get mysql shell with root account but not with my user account.
root@alok-PORTEGE-R30-A:~# mysql -u root -proot #is owrking
alok@alok-PORTEGE-R30-A:~$ mysql -u root -proot #not wokring
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
I am also facing the same problem after freshly installing mariadb in Kubuntu 15.04. I am able to get mysql shell with root account but not with my user account.
root@alok- PORTEGE- R30-A:~ # mysql -u root -proot #is owrking
alok@alok- PORTEGE- R30-A:~ $ mysql -u root -proot #not wokring
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
also my java jdbc driver also not able to connect