An error may occur when entering the database for the first time after installing the mysql database using the command line: ERROR 1045 (28000): Unknown error 1045
, the solution is as follows:
Find the mysql configuration file my.ini
and add code under mysqld
skip-grant-tables
Used to skip authorization form
Restart mysql service
Log in to the mysql database again