From the course: Red Hat Enterprise Linux 8 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Restore logical database backups
From the course: Red Hat Enterprise Linux 8 Essential Training
Restore logical database backups
- [Instructor] In the last video, we created a couple of logical database backup files in our home directory. We can verify their existence by typing in ls -1 space ~/ *.sql hit enter. Now let's use these files to restore our database. First let's log into MariaDB using the mySQL interactive tool. Type in mysql - u root -p and hit enter, and enter your database password. Let's get a list of databases by typing in show databases;. We can see our Linuxdevs database which we backed up in a previous video. Let's drop this database using the drop command. Type in drop database Linuxdevs; and hit enter. And we'll verify with show databases;. Now that we see it's gone, let's exit and restore the Linuxdev database from our backup. Type in exit. Now type in clear to clear your screen. Now we'll use a mySQL command in a non-interactive way to restore the database. Type in mysql -u root -p < ~/dbbackup-linuxdevs.sql…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
Database services introduction44s
-
(Locked)
Install and configure MariaDB2m 3s
-
(Locked)
Manage SELinux for database services2m 58s
-
(Locked)
Perform logical database backups4m 5s
-
(Locked)
Create a database with tables4m 37s
-
(Locked)
Restore logical database backups2m 17s
-
(Locked)
Perform simple SQL queries3m 1s
-
(Locked)
Perform logical database backups4m 5s
-
(Locked)
Restore logical database backups2m 17s
-
(Locked)
Recover the MariaDB root password2m 47s
-
(Locked)
Set the root database password2m 8s
-
-
-
-
-
-
-
-