{"id":2374,"date":"2012-03-18T11:09:08","date_gmt":"2012-03-18T03:09:08","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2374"},"modified":"2023-04-28T09:49:39","modified_gmt":"2023-04-28T09:49:39","slug":"how-to-configure-mysql-database-server-on-fedora-16","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-mysql-database-server-on-fedora-16\/","title":{"rendered":"How to Configure MySQL Database Server on Fedora 16"},"content":{"rendered":"<p>On previous post (<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-mysql-database-server-on-fedora-16\/\" rel=\"nofollow\">Install MySQL<\/a>) i already shows how to install MySQL 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 www.mysql.com. This post will show you how to configure MySQL 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.<\/p>\n<p>1. <strong>How to configure mysql service run at boot on Fedora 16 :<\/strong><br \/>\nTo ensure that the mysql service run automatically at boot, please run this command :<\/p>\n<pre>\n[root@fedora16 ~]# systemctl enable mysqld.service\n<\/pre>\n<p>Example :<\/p>\n<pre>\n[root@fedora16 ~]# systemctl enable mysqld.service\nln -s '\/lib\/systemd\/system\/mysqld.service' '\/etc\/systemd\/system\/multi-user.target.wants\/mysqld.service'\n<\/pre>\n<p>If you run chkconfig command, it will also return the same result as above :<\/p>\n<pre>\n[root@fedora16 ~]# chkconfig --levels 235 mysqld on\nNote: Forwarding request to 'systemctl enable mysqld.service'.\n<\/pre>\n<p>or<\/p>\n<pre>\n[root@fedora16 ~]# chkconfig mysqld on\nNote: Forwarding request to 'systemctl enable mysqld.service'.\n<\/pre>\n<p>2. <strong>How to start mysql service on Fedora 16 :<\/strong><\/p>\n<pre>\n[root@fedora16 ~]# systemctl start mysqld.service\n<\/pre>\n<p>3. <strong>How to stop mysql service on Fedora 16 :<\/strong><\/p>\n<pre>\n[root@fedora16 ~]# systemctl stop mysqld.service\n<\/pre>\n<p>4. <strong>How to restart mysql service on Fedora 16 :<\/strong><\/p>\n<pre>\n[root@fedora16 ~]# systemctl restart mysqld.service\n<\/pre>\n<p>5. <strong>Configure basic security for MySQL server on Fedora 16<\/strong>.<br \/>\nAs a root, simply run the following command :<\/p>\n<pre>\n[root@fedora16 ~]# mysql_secure_installation\n<\/pre>\n<p>Above command will perform the following task for you to ensure your MySQL server apply the basic security :<br \/>\na) Set root password<br \/>\nb) Remove anonymous users<br \/>\nc) Disallow root login remotely<br \/>\nd) Remove test database and access to it<br \/>\ne) Reload privilege tables now<\/p>\n<p>Examples :<\/p>\n<pre>\n[root@fedora16 ~]# mysql_secure_installation\n\n\n\n\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL\n      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!\n\n\nIn order to log into MySQL to secure it, we'll need the current\npassword for the root user.  If you've just installed MySQL, and\nyou haven't set the root password yet, the password will be blank,\nso you should just press enter here.\n\nEnter current password for root (enter for none):\nOK, successfully used password, moving on...\n\nSetting the root password ensures that nobody can log into the MySQL\nroot user without the proper authorisation.\n\nSet root password? [Y\/n] y\nNew password:\nRe-enter new password:\nPassword updated successfully!\nReloading privilege tables..\n ... Success!\n\n\nBy default, a MySQL installation has an anonymous user, allowing anyone\nto log into MySQL without having to have a user account created for\nthem.  This is intended only for testing, and to make the installation\ngo a bit smoother.  You should remove them before moving into a\nproduction environment.\n\nRemove anonymous users? [Y\/n] y\n ... Success!\n\nNormally, root should only be allowed to connect from 'localhost'.  This\nensures that someone cannot guess at the root password from the network.\n\nDisallow root login remotely? [Y\/n] y\n ... Success!\n\nBy default, MySQL comes with a database named 'test' that anyone can\naccess.  This is also intended only for testing, and should be removed\nbefore moving into a production environment.\n\nRemove test database and access to it? [Y\/n] y\n - Dropping test database...\n ... Success!\n - Removing privileges on test database...\n ... Success!\n\nReloading the privilege tables will ensure that all changes made so far\nwill take effect immediately.\n\nReload privilege tables now? [Y\/n] y\n ... Success!\n\nCleaning up...\n\n\n\nAll done!  If you've completed all of the above steps, your MySQL\ninstallation should now be secure.\n\nThanks for using MySQL!\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On previous post (Install MySQL) i already shows how to install MySQL server on Fedora 16. MySQL server is a popular choice of database server that can stores and retrieves&#8230;<\/p>\n","protected":false},"author":6,"featured_media":343,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2057,1008],"tags":[1371,1536,1546,1585],"class_list":["post-2374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-mysql","tag-fedora-16","tag-linux","tag-linux-utilities","tag-mysql"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2374"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/343"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}