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

Set the root database password

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

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…

Contents