How to Install MySQL Database Server on Fedora 16

MySQL server is a popular choice of database server that can stores and retrieves data for the blog, websites and applications. MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multi-user access to a number of databases. For more information on MySQL, you can visit their website at In this post, i will show on how to install MySQL database server on linux Fedora 16 server. This post assumed that you have set up local yum repository using your DVDROM and had installed minimal installation type Fedora 16.

READ  How to Setup psacct or acct - Monitor User Activity in Linux

1. To install mysql service, simply run the following command :

[root@fedora16 ~]# yum install mysql mysql-server -y

Examples of mysql installation :

[root@fedora16 ~]# yum install mysql mysql-server -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.5.14-3.fc16 will be installed
---> Package mysql-server.i686 0:5.5.14-3.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                Arch           Version                  Repository                     Size
 mysql                  i686           5.5.14-3.fc16            Fedora16-Repository           4.2 M
 mysql-server           i686           5.5.14-3.fc16            Fedora16-Repository           7.8 M

Transaction Summary
Install       2 Packages

Total download size: 12 M
Installed size: 70 M
Downloading Packages:
Total                                                                51 MB/s |  12 MB     00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql-5.5.14-3.fc16.i686                                                         1/2
  Installing : mysql-server-5.5.14-3.fc16.i686                                                  2/2

  mysql.i686 0:5.5.14-3.fc16                    mysql-server.i686 0:5.5.14-3.fc16


2. How to configure mysql service run at boot on Fedora 16 :
To ensure that the mysql service run automatically at boot, please run this command :

[root@fedora16 ~]# systemctl enable mysqld.service

Example :

[root@fedora16 ~]# systemctl enable mysqld.service
ln -s '/lib/systemd/system/mysqld.service' '/etc/systemd/system/'

If you run chkconfig command, it will also return the same result as above :

[root@fedora16 ~]# chkconfig --levels 235 mysqld on
Note: Forwarding request to 'systemctl enable mysqld.service'.


[root@fedora16 ~]# chkconfig mysqld on
Note: Forwarding request to 'systemctl enable mysqld.service'.

3. How to start mysql service on Fedora 16 :

[root@fedora16 ~]# systemctl start mysqld.service

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>