How to Reset the MySQL/MariaDB Root Password, Import and Export Databases

Learn basic MySQL/MariaDB disaster recovery and preparedness: How to reset the root MySQL/MariaDB password, import databases from an exported MySQL dump file, and export databases into a MySQL dump file for backup. [...]