I am using debian linux.
I have a linux machine on which mysql is install.
I can log in to my linux machine using root user as well as other user.
I can connect to mysql dat
if u got still no access to db,
1. in ur error message is set no password right?
then first do mysqlpasswd 'username'
after that enter and then give it a password
type again as requested and then
try to access again with mysql -p if you are root