Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.
Step 4: Enable Networking
If you are planning to use tcp/ip to connect to the database(s) we must make a few changes to enable networking.
Edit "/etc/my.cfn" and comment out the line that says "skip networking". Also open "/etc/rc.d/rc.mysqld" and comment out the "skip-networking" line there.
Step 5: Start MySQL
At this stage we can start MySQL with the following command.
# /etc/rc.d/rc.mysql start
Step 6: Set Root MySQL User Password
Now that MySQL is running we need to lock down the root account by setting its password.
# mysqladmin -u root password '[new-password]'
Step 7: Connect to MySQL
To ensure that our password is working, try to connect as root.
# mysql -u root -p