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.
Set the root database password
From the course: Red Hat Enterprise Linux 8 Essential Training
Set the root database password
- [Instructor] There are multiple ways of setting the initial root database users password. The easiest might be to use the MySQL admin command. Be sure that you are not logged into MariaDB with MySQL. You need to be on the Linux command line for this exercise. To set the initial route database user's password, we'll use the MySQL admin command. Type in MySQL admin space dash U space root space password space, and then enter your desired password. I'm going to set mine to mysecurepassword. And hit enter. Now let's verify by trying to log in with the old blink password. Type in MySQL space dash U space root space dash P and hit enter, and then hit enter again for the blink password, you should be denied. Now let's try our new password. Bring your line back again, and hit enter. Now enter your new password. If it worked, you should be able to log in fine. Another way to set the password, if you are able to log in in…
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
-
-
-
-
-
-
-
-