Saturday, June 30, 2012

Install MySQL on Fedora 16/17














1.) Change to root user

su

##OR##

su -c

2.) Check for latest version

yum list mysql mysql-server

 3.) Update or Install Mysql

yum install mysql mysql-server

4.) Start MySQL server and autostart MySQL on boot

systemctl start mysqld.service ##Will start MySql##
systemctl enable mysqld.service ##Will enable MySql service on boot##
##OR##
service mysqld start

chkconfig –levels 235 mysqld on

5.)  MySQL Secure Installation

/usr/bin/mysql_secure_installation

6.) Change the root user’s password

mysqladmin -u root password <your password>

7.) Connect to MySQL database (localhost) with password

mysql -u root -p

 Thanks for reading. If you have any suggestions or query, please feel free to comment.



4 comments:

Anonymous said...

Tks, work fine. I move from ubuntu 10.04 to Fedora 17, and I need MySQL.

Anonymous said...

You are the MAN. It works like a charm. Thanks.

Anonymous said...

Thanks man.....

ainol said...

ainol professional brand website !

Post a Comment

Related Posts Plugin for WordPress, Blogger...