How to Install MySQL Database Server on Fedora 16

Share this Article :

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 www.mysql.com. 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.

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

[[email protected] ~]# yum install mysql mysql-server -y

Examples of mysql installation :

[[email protected] ~]# 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
====================================================================================================
Installing:
 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

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

Complete!

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 :

[[email protected] ~]# systemctl enable mysqld.service

Example :

[[email protected] ~]# systemctl enable mysqld.service
ln -s '/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'

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

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

or

[[email protected] ~]# chkconfig mysqld on
Note: Forwarding request to 'systemctl enable mysqld.service'.

3. How to start mysql service on Fedora 16 :

[[email protected] ~]# systemctl start mysqld.service

Leave a Reply