Skip to content

Category: OS

How to recover MySQL’s “root” password quickly

Have you ever been in a rush or just had a complete brain freeze with your MySQL passwords? Well…..I have.  🙂 ——————————- Step # 1 : Stop mysql service SHELL> /etc/init.d/mysql stop ——————————- Step # 2: Start to MySQL server w/o password: SHELL> mysqld_safe –skip-grant-tables & ——————————- Step # 3:…

Redirecting root’s Email on Red Hat

red-hat-logo-bigIf you are a conscientious system administrator, you like to keep tabs on your server by checking root’s email at least once a day, correct?  If you manage more than one server, or get tired of having to log in to check your mail, you can redirect where email for the root user gets sent.

I ran into problems on Red Hat Enterprise 5.2 doing this, so I thought I’d post the resolution here.