I had a system failure, but I managed to save the /var/lib/mysql library on my linux system.
I have since rebuilt a new Linux (Ubuntu) system (LAMP). I copied the old /var/lib/mysql/mysql folder to the new system as /var/lib/mysql/old_mysql, and I can see the contents using phpmyadmin.
I also copied all the folders from the old /var/lib/mysql to the new /var/lib/mysql.
If I do the following:
Export the contents of the old_mysql/user table, and import it into the new mysql/user table Export the contents of the old_mysql/db table, and import it into the new mysql/db table
Will that restore the users and their passwords for all the databases?