Installing MySQL 5
Install MySQL Server:
[bash]yum install mysql mysql-server[/bash]
Create system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL Server:
[bash]chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start[/bash]
Set passwords for the MySQL root account:
[bash]mysql_secure_installation[/bash]
After you press ENTER you’ll be asked to input for the following options:
Set root password? [Y/n] y<– ENTER
New password: <– yourrootsqlpassword
Re-enter new password: <– yourrootsqlpassword
Remove anonymous users? [Y/n] y <– ENTER
Disallow root login remotely? [Y/n] n<– ENTER
Remove test database and access to it? [Y/n] n<– ENTER
Reload privilege tables now? [Y/n] y<– ENTER
Installing MySQL is done!
Leave a Reply