NOTE: you should *always* have a password for any mysql user -- espcially for root. Why? hackers know that mysql installs without a password for root. They love to get in that way.
# /etc/init.d/mysql.server stop
# /etc/init.d/mysqld stop
# service mysqld stop
# safe_mysqld -user=mysql -skip-grant-tables -skip-networking
# mysqladmin -u root flush-privileges password "newpassword"
# service mysqld start
# mysql -u root -p
All content not copyright by anyone else is
copyright © 2003–2012 James Walker.
License for use is the GNU Free Documentation License.
Find it:
here in the
License directory
or
at the Free Software Foundation,
www.fsf.org