MYSQL Access Denied

Not able to login in MySQL. I am getting the following error :-
’ [abhishekga@server-1 ~]$mysql -u abhishekga -p
Enter password:
ERROR 1045 (28000): Access denied for user ‘abhishekga’@‘localhost’ (using password:

Please resolve it asap.

What happens when you type the command ‘mysql’ without any options?

Hi All,

I am not able to login in Mysql. kindly do needful .

Thnaks and Regards,
Sumit Pandey

this is the error i get by just typing mysql

**[abhishekga@server-1 ~]$mysql **
ERROR 1049 (42000): Unknown database 'db_abhishekga’

Please let us know the error message. thanks @ramjee

Please try again now. It should work.

Dear Laks,

I am normally login like :- mysql -u ramjee -p

After that it showing below error .

Error 1045 (28000) : Access denied for user ‘ramjee’@’ localhost’ (using password : Yes)

Kindly do needful.

Thanks and Regards,
Sumit Pandey

What happens when you simply type ‘mysql’ - You won’t need to pass user or password on webminal for mysql. It should work automagically :slight_smile:

Dear Laks,

I entered " $ mysql " only . Then it showing below error.

Error 1049 (42000) : Unknown database ‘db_name’ .

Kindly look into it.

Sumit Pandey

Okay, can you again the same command ‘mysql’ - I restarted mysql service now.

Thanks Sir,

It’s working now.:slightly_smiling_face:

Sumit Pandey

1 Like

I have the same issues. I can’t log in to mysql.

Let us know your username.

Mysql not working when I give mysql
it shows error as unknown database db_ramkumar10399