MySQL "Access Denied" in xampp v3.2.2 - mysql

I installed XAMPP and am unable to connect to MySQL to create a password.
When I attempt to connect, I get the error:
Access denied for user 'root'#'localhost' (using password: NO)

Related

1045, "Access denied for user 'root'#'localhost' (using password: NO)")

i'm using xampp and vagrant to run my project but whenever i try to makemigration or run the server i got this error
django.db.utils.OperationalError: (1045, "Access denied for user 'root'#'localhost' (using
password: NO)")
here's my connection data
and i'm using vagrant to run my project
full error:
so what's the error?
If you're lauching it from command line, you may have to define env var in that command line (see here)

can't create user on mysql on windows

I just installed MySQL Version 8.0.27 on my windows machine, whenever i try to run MySQL command i get this error
ERROR 1045 (28000): Access denied for user 'ODBC'#'localhost' (using password: NO)
and when i try to run MySQL -u root -p i get this error after specifying password
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
Also i can't locate my.ini file. i was thinking if i should add my.ini file manually or download another version of mysql
I fixed my issue by installing mysql version 5.6.11

ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO) on MAC

I have installed 8.0.18 MySQL Community Server - GPL.
1. When I tried "sudo mysql" in terminal it is giving the following error.
"ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)".
Need to connect from Workbench
The MySQL server is up and running.
Giving the following error when trying to connect from workbench
Your connection attempt failed for user 'root' from your host to server at localhost:3306:
Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found
when i ran this command "mysql -u root -p" it is showing MySQL console. Still not able to connect from Workbench

MySQL on Mac: Access denied for user 'root'#'localhost' (using password: YES)

I installed MySQL on my Mac following the guide at https://dev.mysql.com/doc/refman/5.6/en/osx-installation-pkg.html
Then I downloaded MySQL and tried to connect to it, but I got the error:
I have tried to reset the root password as mentioned in Stuck with Access Denied for user 'root'#'localhost' - Terminal, Mac but it does not help.

mysqlfailover command gives Error 1045: Access denied for user 'root'#'localhost' (using password: NO)

I am trying to run mysqlfailover using workbench console:
mysqlfailover --master=root#localhost:3306 --discover-slaves-login='root' --log=log.txt
and I am getting the error :
ERROR: Cannot connect to the master server.
Error 1045: Access denied for user 'root'#'localhost' (using password: NO)
I tried to google but found nothing.
Mysql version is 5.6.17.
This error is simply saying that user root#localhost is not allowed to execute this command with no password. If you have the password set for root#user modify you command as " mysqlfailover --master=root:YOURMYSQLPASSWORDFORROOT#localhost:3306 --discover-slaves-login='root' --log=log.txt"
This should solve the problem.