all your mysql users, permissions, etc -- but it can wreak havoc with things like the debian-sys-maint user used to cleanly shutdown mysql.
A... se it won't automatically change the expected debian-sys-maint password in /etc/mysql/debian.cnf. In fact, unless you also backed up that file... sys maint password. =====
So now look up the debian sys maint password that debian created for you when you installed it on the new ... flush privileges:
<code>
> SET PASSWORD FOR 'debian-sys-maint'@'localhost' = PASSWORD('password_from_/etc/mysql/debian.cnf');
> FLUSH PRIVILEGES;
> QUIT
</code>
Test