Error Nr is reported at the last step of mysql installation. 1045 solve the problem that the first time mysql database was installed on my computer, it always cracked the crude Nr. 1045 1. go to control panel-> Administrative Tools-> services, open MySQL Services 2. enter the command window, and then enter the MySQL installation directory, for example, enter the c: \ Program Files \ MySQL Server 5.1 \ bin c disk to enter the directory command writing cd c: \ enter the file Writing Method cd folder name 3. skip permission check to start MySQL c: \ Program Files \ MySQL/My SQL Server 5.1 \ bin> mysqld -- skip-grant-tables 4. open a new command window, go to the c: \ Program Files \ MySQL \ My SQL Server 5.1 \ bin directory, and set the new root password c: \ mysql \ bin> mysqladmin-u root flush-privileges password "newpassword" replace newpassword with your root password.-u is the user username 5. then you can use the new password to link to Mysql.