Perform the following actions as the root user.
echo -n @ && cat /dev/urandom | env LC_CTYPE=C tr -dc [:alnum:] | head -c 15 && echo
This password should pass the mysql validation plugin's requirements for a 'strong' password, should you choose to use that.
SAVE THIS PASSWORD TO A TEXTFILE OR PASSWORD MANAGER RIGHT NOW! (not on your WordPress VM). You'll need it later.
Note You might notice the 'echo -n @' at the beginning of this password generation command. This is to get around the new password policy in MySQL version 5.5.6 and newer. Yes, it is predictable and the extra character doesn't add security, but it also doesn't make it any less secure. Being a sysadmin is also about being pragmatic.
/usr/bin/mysql_secure_installation
Answer 'y' to all questions and set the password policy (second question) to 0-3 (whichever one you prefer; it doesn't really affect you in this course). If this is your first time through the course, you can set the password security to 0 to ensure mysql doesn't surprise you when you're testing/experimenting with passwords.
systemctl restart mysql
Not strictly necessary but it's good to practice working with services.