When logging into MySQL with CentOS command, error 1045 (28000): access denied for user is reported root@localhost (using password: no) error resolution
1. Disable MySQL service: #/etc/RC. D/init. D/mysqld stop
2. Input command: #/mysqld_ Safe — user = MySQL — skip grant tables — skip Networking & amp;
3. Log in to the database: # MySQL – U root MySQL
4. MySQL & gt; use MySQL; the results are as follows:
database changed 5. MySQL & gt; update user set password = password (‘newpassword ‘) where user’ =’newuser ‘; the results are as follows:
query OK, 3 rows affected (0.00 sec) rows matched: 3 changed: 3 warnings: 0
MySQL & gt; flush priorities;
the results are as follows:
query OK, 0 rows affected (0.00 sec)
MySQL & gt; quit
;/etc/RC. D/init. D/MySQL D restart
MySQL – u newuser – P
Enter password:newpassword
mysql> ≪ login successful & gt;
Read More:
- An error is reported when logging into mysql. The error message is error 1049 (42000): unknown database ‘XXXXXX’
- When centos7 uses the man search command, an error is reported no manual entry for XXXX
- Pikachu vulnerability is installed in the shooting range, and an error is reported when connecting to the MySQL database
- Putty encountered an error when logging into alicloud CentOS: dis connected:No supported authentication methods available
- An error is reported when the jeecg boot project connects to the MySQL database running on docker
- MySQL master-slave replication. An error is reported when starting slave. Slave failed to initialize relay log info structure from the repository
- [screen recording] an error is reported in the screenrecord command: inaccessible or not found
- An error is reported when kettle connects Oracle database and MySQL database
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- When idea executes the command, an error is reported: CreateProcess error = 2. The system cannot find the specified file
- An error keyerror255 was reported when pymysql connect to MySQL
- An error was reported in the process of importing the table from mysql5.7: [err] 1067 – invalid default value for ‘***‘
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- An error was reported during MySQL 6.0 installation: start service failed
- MYSQL login error: mysqladmin: connect to server at’localhost’ failed
- ERROR 1148 (42000): The used command is not allowed with this MySQL version
- An error of 500 is reported when an item is assigned to a role
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- Solution to errors reported by TES command in vscode – errors reported by typescript command