{"id":422,"date":"2018-02-21T04:51:08","date_gmt":"2018-02-21T04:51:08","guid":{"rendered":"http:\/\/hyderabadwebhosting.in\/blog\/?p=422"},"modified":"2018-03-10T00:04:01","modified_gmt":"2018-03-10T00:04:01","slug":"install-setup-mysql-phpmyadmin-apache","status":"publish","type":"post","link":"https:\/\/hyderabadwebhosting.in\/blog\/install-setup-mysql-phpmyadmin-apache\/","title":{"rendered":"Install &#038; Setup MySQL and phpMyAdmin with Apache"},"content":{"rendered":"<p><em><strong><span style=\"font-size: x-large;\">Install &amp; Setup MySQL and phpMyAdmin with Apache<\/span><\/strong><\/em><\/p>\n<p><span style=\"font-size: large;\">MySQL is a powerful open source Relational Database used by many dynamic websites across the internet. MySQL is most commonly used as the database.<\/span><\/p>\n<p><span style=\"font-size: large;\">phpMyAdmin is an open source tool used for the administration of MySQL. In addition to offering the capability to perform administration tasks such as creating, editing, or deleting databases, and managing users and permissions, phpMyAdmin provides a graphical user interface to do all of these tasks and more.<\/span><\/p>\n<p><span style=\"font-size: large;\">Assuming you have already installed and configured Apache with PHP5 as your web server,Here we discusssed about the steps to install MySQL and phpMyAdmin.<\/span><\/p>\n<p><span style=\"font-size: large;\">First of all, you need to install MySQL by run the following:<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">yum install mysql-server<\/span><\/strong><\/p>\n<p><strong><span style=\"font-size: large;\">chkconfig mysqld on<\/span><\/strong><\/p>\n<p><strong><span style=\"font-size: large;\">systemctl restart mysqld.services<\/span><\/strong><\/p>\n<p><span style=\"font-size: large;\">Relational database management systems like MySQL and MariaDB are needed for a significant portion of web sites and applications. However, not all users feel comfortable administering their data from the command line.<\/span><\/p>\n<p><span style=\"font-size: large;\">To solve this problem, a project called phpMyAdmin was created in order to offer an alternative in the form of a web-based management interface<\/span><\/p>\n<p><em><strong><span style=\"font-size: large;\">Install phpMyAdmin<\/span><\/strong><\/em><\/p>\n<p><span style=\"font-size: large;\">Unfortunately, phpMyAdmin is not available in CentOS 7&#8217;s default repository.<\/span><\/p>\n<p><span style=\"font-size: large;\">phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we\u2019ll install the EPEL repository<\/span><\/p>\n<p><span style=\"font-size: large;\">The EPEL repository can be made available to your server by installing a special package called epel-release<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">yum install epel-release<\/span><\/strong><\/p>\n<p><span style=\"font-size: large;\">you can install the phpMyAdmin package using the yum packaging system by typing:<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">yum install phpmyadmin<\/span><\/strong><\/p>\n<p><span style=\"font-size: large;\">The installation will now complete. The installation included an Apache configuration file that has already been put into place. We will need to modify this a bit to get it to work correctly for our installation.<\/span><\/p>\n<p><span style=\"font-size: large;\">Open the file in your text editor now so that we can make a few changes:<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">vim\u00a0<\/span><span style=\"font-size: large;\">\/etc\/httpd\/conf.d\/phpMyAdmin.conf<\/span><\/strong><\/p>\n<p><span style=\"font-size: large;\">By default, the configuration for phpMyAdmin only allows access from the server on which it is installed. Find the following sections and change each IP address to the one you found<\/span><\/p>\n<p><span style=\"font-size: large;\">Change any lines that read Require ip 127.0.0.1 or Allow from 127.0.0.1 to refer to your home connection&#8217;s IP address. If you need help finding the IP address of your home connection, check out the next section. There should be four locations in the file that must be changed:<\/span><\/p>\n<p><span style=\"font-size: large;\">Require ip 127.0.0.1<\/span><br \/>\n<span style=\"font-size: large;\">Allow from 127.0.0.1<\/span><br \/>\n<span style=\"font-size: large;\">Require ip 127.0.0.1<\/span><br \/>\n<span style=\"font-size: large;\">Allow from 127.0.0.1<\/span><\/p>\n<p><span style=\"font-size: large;\">When you are finished, restart the Apache web server to implement your modifications by typing:<\/span><\/p>\n<p><strong><span style=\"font-size: large;\">systemctl restart httpd.service<\/span><\/strong><\/p>\n<p><span style=\"font-size: large;\">our phpMyAdmin installation is completed. To verify by visinting your IPaddress\/phpMyAdmin, in your web browser:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-423 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/login.png\" alt=\"\" width=\"483\" height=\"508\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/login.png 483w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/login-285x300.png 285w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/p>\n<p><span style=\"font-size: large;\">To sign in, use a username\/password pair of a valid MariaDB user. The root user and the MariaDB administrative password is a good choice to get started. You will then be able to access the administrative interface.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-424 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/main_page.png\" alt=\"\" width=\"715\" height=\"357\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/main_page.png 715w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/main_page-300x150.png 300w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2018\/02\/main_page-660x330.png 660w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Now, you can manage Databases by PhpMyAdmin<\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tfPqExJLUpMSkwpT03KyC8uycxL18vM00\/KyU8HAA==\" \/><input type=\"hidden\" name=\"blogName\" value=\"86hMSS1KTEpMUQhPTVLwyC8uycxLBwA=\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzEyAgA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"88wrLknMyVFQUzYwtrBWCE4tKS1Q8K0MDvRRSMxLUSjIKPCtdEzJzcxTKM8syVBwLEhMzkgFAA==\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"BcHBDYAwCADAiZC\/21BLCgmlKBjT7b2TqsgTUXbnhxr1j5usLPVxqGOzNVA9i8wgud6AufM2CIm5qU91oKBLGH8=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"c\/QLDVAICHJ08XD0AwA=\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwtNA1MNI1MlQwMLEyMLIysAAA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"tVjdbuQ0FL7nKaxBQiDNTKbtllbdttICRbvSLhQWhLhCnsSZmDq2sZ2ZyV7xGtzxLDwKT8J37CSTbsuysy3qRSeOfX6\/853jnNvLc1FfnvvgjF7hv+Wa+dAqcTEpjQ4zL9+IM7adKe5W4unk8oX2gSvFPuG1fcpei9BY9qp9\/d1LxnXBbGVftc+KWmq2kaFizyzPK3GekdhL\/Ou0ZKQys5cfndt\/VdkrTMKlZ5xZsxGubBQzVuCIaVwu2PdC8SCN5op9xQNfci9Y40XBli2ruW5Z0Wpey5xtxNLLICAod8Z7FirBpA7CaRHmbFBTGx9YburaaNUmSTxtLjrx88Gf9\/NgFBRyQ98yPxijkpbSuKiG006JUEW3mCmTbXP2QuNdIeNqMHhRCif1Kh7KueVLqWRo6ZVFmIyr3xYVuL\/xzDd5RS7lTmBZr6ZMkFD6AQsKoQQ9DN76acwsQslXt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Lj7M1pqqFxHV3d75pbV+UEpERngRhtmPKIkdD6bs1FOJPHJptGwBhNJoAq9uKaZmpHCoKJh4wWceoqTaOLPfP8ZZJMtw5qvT7lk6CJa8pvjcSQIC07ODyZL\/B3QPP2MzIxObdbhylOlKmJRqhUpo4R08mPoanszMf1oNxNi5VQFmDTRU8UIz9Nea\/MKeIi8hvWD7ea0NnFLRYojPeVaTDFLSm0kKBMN7sMTX0oyrrBEIt9KdbF2Z6BvC9avYilYxmE\/Nd94J647ifh\/7XhPQPxUyUiW8QBs6SxrxLFdJh9Kej9NWa4tMS7AjFrnKRiriPl9ZPmwxvE3SE8MkY\/g38oRZCl4yHnVkPwQ7tAiWNIhaPE4vBlLdEPQ3f3c4B6h\/QRc00H0qUwLR14Rbg73st6BUxzKpqLieJv2gkoKzfpmftW5xOWK+49nhTm+1zQoMU2diZr9OXZk8MjRh7NykapCfMuv5hQYM6yrGoxE+NSUUB\/ZTxZO5c6WyqzynAeZRggLGss6ffZ4eLgNFscZngN2rV6NaEZ+mIyQScrQnUxeXJ6NEGVy1WF1ePFadTmRUgK\/SNoZFCxmbLHEDc7PD3eHi0WUSx+byYxTBTGJpgp+7Tm21l07Iy02u1n7GCxWEN7fJqg1va5vSAzjFKO6xP6J12iNK9FZpE49HaaanFhilePNdK4u8PRzjSKOINxPn6x4F0rGe55oy8quMwMMuMosTKGuouR6QMHjRSxOgixP6OG4xQSqKLBjP3k2rW3t7\/8rMXuDjR\/fKA+eWSg1lzqXyxk3wfWk4PjHViPjk8eDay3tDKoeThgB5EzAHZ7cJxAi9+PKfrzzxfbo6MkGr\/fVQ9walQP8WlcD9+YTfpIlCZGuj8Pn0Ej0V+PLr848g8=\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\"><img src=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/sheep_32x32.png\" alt=\"www.pdf24.org\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"<p>Install &amp; Setup MySQL and phpMyAdmin with Apache MySQL is a powerful open source Relational Database used by many dynamic websites across the internet. MySQL is most commonly used as the database. phpMyAdmin is an open source tool used for the administration of MySQL. In addition to offering the capability to perform administration tasks such\u2026 <span class=\"read-more\"><a href=\"https:\/\/hyderabadwebhosting.in\/blog\/install-setup-mysql-phpmyadmin-apache\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":425,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":1,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":426,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions\/426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/425"}],"wp:attachment":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}