MySQL is a Relational Database Management System that can stores and retrieves data for the blog, websites and applications. In this article, i will show on how to install MySQL database server on Linux Fedora 16 server.
1. To install MySQL service, simply run the following command :
yum install mysql mysql-server -y
Example:
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. Configure mysql service on Fedora 16 :
To make sure that the mysql service run automatically at boot, please run this command:
systemctl enable mysqld.service
Example:
systemctl enable mysqld.service ln -s '/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi -user.target.wants/mysqld.service'
You can also run the chkconfig command, it will also return the same result as above :
chkconfig --levels 235 mysqld on Note: Forwarding request to 'systemctl enable mysqld.service'.
or
chkconfig mysqld on Note: Forwarding request to 'systemctl enable mysqld.service'.
3. How to start mysql service on Fedora 16 :
systemctl start mysqld.service
That’s all you have to do,You also like to know how to Install phpmyadmin OnFedora. Also give your opinion below if you experience any issues or to discuss your ideas and experiences.