Here are the tips I learned while setting up MySQL
- # yum install mysql mysql-server
- Edit /etc/my.cnf and enter datadir information (i.e /mysql/data)
- Bring up /etc/init.d/mysqld start
- Start MySQL server
- Change the mysql root user password type: mysqladmin -u root password 'newpassword'
- Test connecting to mysql Type: mysql -u root -p enter the password when prompted.