can't create user on mysql on windows - mysql

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

Related

mysql -v ERROR 1045 (28000): Access denied for user root'#'localhost' (using password: NO)

I need help. When Checking mySQL version I get this error. I do not use mysql a lot and I am trying to set up a Magento store through command line. However, first I am trying to set up mySql from the database. I am using Mac OS Catalina and Zsh terminal.
Error.
mysql -v
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
I know it must be something with my database but I am confused. Any help would be appreciated. When I try to download Magento 2 setup install I get this similar error.
--db-user=root --admin-firstname=Magento --admin-lastname=User --admin-email=user#example.com --admin-user=admin --admin-password=123123q --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
SQLSTATE[HY000] [1045] Access denied for user 'root'#'localhost' (using password: NO)
In InstallCommand.php line 264:
Parameter validation failed
EDIT: However, When I connect to mysql -u root I can connect to the database no problem.
You need to pass in the user and password when running mysql from the command line
mysql -u root -p
[enter password]
Alternatively, you can set up a mylogin.cnf (or a .my.cnf) to save the user/password as a file, so you don't need to remember it.
https://dba.stackexchange.com/questions/86595/how-can-i-make-mysql-client-read-password-from-mylogin-cnf

mysql error Access denied for user 'root'#'localhost'

I just installed MySQL on my pc using tutorial on the YouTube every thing set to default options during the installation the tutorial said that after the installation done I should open the MySQL 8.0 commend line client and then I should type the password to connect the database but when I open it and after I type my password it's close when I press enter so I tried to use the work MySQL workbench it's gives me this popup error I search on the internet for solution I got this here but this solution for ubuntu none of the answers are not applicable on windows but some other solution gives me some other errors :
C:\Users\husam>mysql -u root -p
Enter password: ***************
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
C:\Users\husam>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'#'localhost' (using password: NO)
I want to use the MySQL with ruby on rails project on windows 10
the issue wan in my password it's contain ' so I removed it and everything works fine

How to access mysql with asking the root password

I have installed MySQL community edition in the Centos machine, I want to access the MySQL service by just typing mysql instead of mysql -uroot -p<password>, I have done so sort configuration adding the username and password in the my.cnf that is not gone work anymore it throwing
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using
password: YES)
As error is defined ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES), you are using the wrong password for accessing mysql.
You can also update username & password using cli
UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; & restart mysql using sudo service mysql restart
Thanks

MySql login error after installing Xampp

I recently installed Xampp in windows 10 and made changes to config file to overcome port error but mysql in cmd stopped working and it gives below error when i try to login.
I almost tried everything on internet.
C:\Users\Lenovo>mysql -u root -p
Enter password: ******
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
go to xampp / phpmyadmin and in config put you password

I am facing issues while starting mysql on macOS

Whenever I install mysql on macOS I get this error while starting it
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
I have tried the password which I got during the installation. The error then is :
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
I have also tried using root as a password or completely letting it blank but none of this worked
NOTE: I am using mysql using the MAMP setup and it is running just fine there.
It is located at:
/Applications/MAMP/Library/bin/mysql
I am able to run as root from there. Is it due to I am trying to run as root from two places? Please help me out.