Error 1045 (28000): access denied for user ‘root’ @’localhost ‘(using password: no)
The solution steps are as follows:
1. First stop the database service: systemctl stop mariadb.service
2. Use mysqld_ Safe to start mysqld server: mysqld_ safe –user=mysql –skip-grant-tables –skip-networking &
Display: exit Ctrl + C
3. Login: MySQL – U root mysql
4. Modify the password of the root user: update user set password = password (‘newpassword ‘) where user’s root’;
5. Use the modified root user and new password to log in to the database: MySQL – uroot – P
The MariaDB server is running with the –skip-grant-tables option so it cannot execute this statement
An error occurred when creating a user. The execution statement is:
GRANT ALL PRIVILEGES ON *.* TO helei IDENTIFIED BY ‘MANAGER’ WITH GRANT OPTION;
Solution: MySQL & gt; flush privileges;
Reference: MariaDB initial login error 1045 (28000) solution
https://blog.csdn.net/carry9148/article/details/52252780
Read More:
- Error 1045 (28000): solution to access denied for user ‘root’ @’localhost ‘(using password: no)
- ER_ACCESS_DENIED_ERROR: Access denied for user ‘root‘@‘localhost‘ (using password: NO)
- ERROR 1045 (28000): Access denied for user’ODBC’@localhost (using password: NO)209150;’211503;’
- MySQL startup problem (ERROR 1045 (28000): Access denied for user’ODBC’@’localhost’ (using password: NO))
- Solve MySQL error 1698 (28000): access denied for user ‘root’ @’localhost ‘
- Error 1045 (28000) access denied for user ‘root’ @’localhost ‘appears in MySQL under Windows system
- MySQL connection error access denied for user ‘root’ @ ‘localhost‘
- Error code 1045, state 28000, Java sql.SQLException :Access denied for user ‘root’@’localhost’
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘mysql’
- Idea access denied for user ‘xxx’ @ ‘localhost’ solution
- Make the root user login through SSH and report the error of “permission denied, please try again”
- MySQL forgot the root password
- How to Fix failed to Connect to MySQL at localhost:3306 with user root
- Remote: http basic: access denied, fatal: authentication failed for error resolution: wrong password
- MySQL Access denied
- [MySQL] error 1396 (HY000): Operation create user failed for ‘MySQL’ @’localhost ‘
- Root password of windows 10 WSL Ubuntu system
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- Setting the root password of windows 10 Ubuntu subsystem