sudo apt install mysql-server
systemctl start mysql
mysql -u 'root' -p
Default password is rootsystemctl stop mysql
Create database db_name
mysqldump --databases db1 db2 db3 > dump.sql
mysql db_name < backup-file.sql
mysql -u root -p
Then press enter and enter passwordsource filename.sql
To create database from dump file