Q:

MySQl Configuration Error After reinstall it

When I reinstall MySQL database after uninstall it, I got this error when configuration:
 Error 1045
Now, My new directory is here:
E:\Program Files (x86)\MySQL\MySQL Server 5.5

and my old directory was this:
c:\Program Files (x86)\MySQL\MySQL Server 5.5

I delete whole MySQl folder on drive c , But it has error when want to config!
 How can i fix this problem?
Thanks is advance.

A:

You can follow this method as well:

Menu>Start>Run>CMD
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld.exe" --skip-grant-tables
Let's this window open and open a new one
Menu>Start>Run>CMD
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe" -u root
You're now connect to MySQL, you have to modified the root account in the date of MySQL
mysql> use mysql;
mysql> UPDATE user SET password=PASSWORD('motdepasse') WHERE user="root";
mysql> flush privileges;
mysql> exit;
Restart with MySQL Command Line Client

That's it 

