26. May 2009 · Write a comment · Categories: Computers, Linux · Tags: ,

Default root password for MySQL is blank, it can be set by:
mysql -u root -e "set password = password('your mysql password');"

Don’t forget to set the run levels:
/sbin/chkconfig --level 2345 mysqld on

You must be logged in to leave a reply.