vscode-mysql icon indicating copy to clipboard operation
vscode-mysql copied to clipboard

ER_NOT_SUPPORTED_AUTH_MODE

Open samuelradford opened this issue 5 years ago • 26 comments

Using MySQL 8.0.12 on a Mac, this error occurs when connecting to a local instance.

ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client.

samuelradford avatar Nov 03 '18 22:11 samuelradford

Try running this on your MySQL client: ALTER USER '<your_user>'@'localhost' IDENTIFIED WITH mysql_native_password BY '<your_password>';

KevinSmild avatar Nov 07 '18 04:11 KevinSmild

Try running this on your MySQL client: ALTER USER '<your_user>'@'localhost' IDENTIFIED WITH mysql_native_password BY '<your_password>';

That worked with me, thank you

gitpushdev avatar Nov 21 '18 12:11 gitpushdev

thank you,you helped so much

jvictorhuguenin avatar Jan 20 '19 20:01 jvictorhuguenin

Thanks for the help. Here is a link to know more how this works.

vishalkrv avatar Mar 30 '19 10:03 vishalkrv

thanks, it works!

dsksandr avatar Jan 26 '20 06:01 dsksandr

great

kangkang59812 avatar Mar 20 '20 07:03 kangkang59812

ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'password';
flush privileges;
```

Worked for me!

shenshouer avatar Jul 24 '20 02:07 shenshouer

localhost can be %

Ymangz avatar Jul 30 '20 08:07 Ymangz

Nice.

richiezhzh avatar Sep 10 '20 04:09 richiezhzh

Thanks a lot, it works!

incesubaris avatar Dec 13 '20 21:12 incesubaris

Thanks a lot!!!!

Syncure avatar May 01 '21 03:05 Syncure

It works! Thank you!

diego-dotcom avatar Jun 03 '21 19:06 diego-dotcom

Worked like a charm!

ps011 avatar Jul 14 '21 18:07 ps011

ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'password';
flush privileges;

Worked for me!

Worked for me too!!

kavya47 avatar Jul 22 '21 21:07 kavya47

Thanks, It worked for me too

Vanidasan avatar Jan 15 '22 10:01 Vanidasan

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''; this worked for me. Thank you

sammed-dev avatar Apr 04 '22 11:04 sammed-dev

worked for me!!

guru2linux avatar Jun 27 '22 18:06 guru2linux

Try running this on your MySQL client: ALTER USER '<your_user>'@'localhost' IDENTIFIED WITH mysql_native_password BY '<your_password>';

i did this but now i cant connect on mysql workbench to the root connection and it didnt fix the problem for me

awesomecakex avatar Dec 08 '22 11:12 awesomecakex

Nice one. After typing those commands you need to exit and enter VS again

bearzeze avatar Jan 03 '23 15:01 bearzeze

Thanks you it worked!

Edwingudfriend avatar Feb 02 '23 15:02 Edwingudfriend

That just gets me

ALTER : The term 'ALTER' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of 
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'password'
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (ALTER:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Using Visual Studio's terminal and PowerShell.

DavidConley avatar Mar 15 '23 22:03 DavidConley

this worked for me, mysql running in local docker container: ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'supersecret';

hansrwindhoff avatar Jun 09 '23 21:06 hansrwindhoff

Nice, this works.

liber09 avatar Dec 12 '23 03:12 liber09

Try running this on your MySQL client: ALTER USER '<your_user>'@'localhost' IDENTIFIED WITH mysql_native_password BY '<your_password>';

why?

artm avatar Jan 01 '24 12:01 artm

ALTER USER 'user' IDENTIFIED WITH mysql_native_password BY 'password';

worked for me

githubjess avatar Mar 04 '24 22:03 githubjess

@KevinSmild Thank you very much, was struggling to connect from long

Anish-Parkhi avatar Apr 05 '24 17:04 Anish-Parkhi