{"id":1885,"date":"2019-03-18T12:36:49","date_gmt":"2019-03-18T05:36:49","guid":{"rendered":"https:\/\/www.linuxid.net\/post\/?p=1885"},"modified":"2025-03-28T22:41:13","modified_gmt":"2025-03-28T15:41:13","slug":"tutorial-cara-install-mysql-5-7-di-amazon-linux","status":"publish","type":"post","link":"https:\/\/www.linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/","title":{"rendered":"Tutorial Cara Install MySQL 5.7 di Amazon Linux"},"content":{"rendered":"<p>MySQL adalah sistem database relasional. Dalam tutorial kami sebelumnya, Anda menginstal <a href=\"https:\/\/www.linuxid.net\/post\/cara-install-apache-2-4-php-7-3-di-amazon-linux\/\">Apache dan PHP di Amazon Linux<\/a>. Tutorial ini akan membantu Anda menginstal MySQL 5.7 di sistem Amazon Linux.<\/p>\n<h2>Langkah 1 \u2013 Persiapan<\/h2>\n<p>Login ke sistem Fedora Anda dan buka terminal. Sekarang perbarui paket saat ini ke versi terbaru dengan menjalankan perintah berikut.<\/p>\n<pre>yum update&#13;\n<\/pre>\n<h2>Langkah 2 \u2013 Install MySQL Server<\/h2>\n<p>Setelah itu jalankan perintah berikut untuk menginstal paket MySQL 5.7 pada sistem Anda. Ini juga akan menginstal semua dependensi yang diperlukan lainnya.<\/p>\n<pre>yum install mysql57-server&#13;\n<\/pre>\n<p><a href=\"https:\/\/www.linuxid.net\/assets\/media\/Tutorial-Cara-Install-MySQL-5.7-di-Amazon-Linux.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\" td-modal-image alignnone wp-image-24825 size-full\" src=\"https:\/\/www.linuxid.net\/assets\/media\/Tutorial-Cara-Install-MySQL-5.7-di-Amazon-Linux.png\" alt=\"Tutorial Cara Install MySQL 5.7 di Amazon Linux\" width=\"835\" height=\"353\"\/><\/a><\/p>\n<p>Setelah instalasi server MySQL pada sistem Fedora. Aktifkan layanan MySQL untuk memulai secara otomatis saat sistem boot. Juga, mulai layanan menggunakan perintah di bawah ini::<\/p>\n<pre>service mysqld start&#13;\nchkconfig mysqld on&#13;\n<\/pre>\n<p>Oke, sekarang ikuti instruksi pasca instalasi.<\/p>\n<h2>Langkah 3 \u2013 Konfigurasi MySQL<\/h2>\n<p>MySQL community server telah diinstal pada sistem Anda. Sekarang jalankan perintah berikut untuk menerapkan keamanan di server MySQL. Cukup jalankan perintah di bawah ini dan ikuti wizard keamanan.<\/p>\n<pre>mysql_secure_installation&#13;\n<\/pre>\n<p>Ikuti instruksi pada layar. Ubah kata sandi akun root Anda dan Tekan Y untuk semua operasi lain untuk menerapkan keamanan yang ditingkatkan.<\/p>\n<pre class=\"pretty\">VALIDATE PASSWORD PLUGIN can be used to test passwords&#13;\nand improve security. It checks the strength of password&#13;\nand allows the users to set only those passwords which are&#13;\nsecure enough. Would you like to setup VALIDATE PASSWORD plugin?&#13;\n&#13;\nPress y|Y for Yes, any other key for No: <strong>y<\/strong>&#13;\n&#13;\nThere are three levels of password validation policy:&#13;\n&#13;\nLOW    Length &gt;= 8&#13;\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters&#13;\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary       file&#13;\n&#13;\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG:<span style=\"color: #ff0000;\"><strong> 0<\/strong><\/span>&#13;\nPlease set the password for root here.&#13;\n&#13;\nNew password:&#13;\n&#13;\nRe-enter new password:&#13;\n&#13;\nEstimated strength of the password: 100&#13;\nDo you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) :<span style=\"color: #ff0000;\"><strong> y<\/strong><\/span>&#13;\nBy default, a MySQL installation has an anonymous user,&#13;\nallowing anyone to log into MySQL without having to have&#13;\na user account created for them. This is intended only for&#13;\ntesting, and to make the installation go a bit smoother.&#13;\nYou should remove them before moving into a production&#13;\nenvironment.&#13;\n&#13;\nRemove anonymous users? (Press y|Y for Yes, any other key for No) :<span style=\"color: #ff0000;\"><strong> y<\/strong><\/span>&#13;\nSuccess.&#13;\n&#13;\n&#13;\nNormally, root should only be allowed to connect from&#13;\n'localhost'. This ensures that someone cannot guess at&#13;\nthe root password from the network.&#13;\n&#13;\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) :<span style=\"color: #ff0000;\"><strong> y<\/strong><\/span>&#13;\nSuccess.&#13;\n&#13;\nBy default, MySQL comes with a database named 'test' that&#13;\nanyone can access. This is also intended only for testing,&#13;\nand should be removed before moving into a production&#13;\nenvironment.&#13;\n&#13;\n&#13;\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) :<span style=\"color: #ff0000;\"><strong> y<\/strong><\/span>&#13;\n - Dropping test database...&#13;\nSuccess.&#13;\n&#13;\n - Removing privileges on test database...&#13;\nSuccess.&#13;\n&#13;\nReloading the privilege tables will ensure that all changes&#13;\nmade so far will take effect immediately.&#13;\n&#13;\nReload privilege tables now? (Press y|Y for Yes, any other key for No) :<span style=\"color: #ff0000;\"><strong> y<\/strong><\/span>&#13;\nSuccess.&#13;\n&#13;\n<span style=\"color: #00ff00;\">All done!&#13;\n<\/span><\/pre>\n<h2>Langkah 4 \u2013 Konek ke MySQL via Terminal<\/h2>\n<p>Semua selesai. Anda sekarang dapat terhubung ke server MySQL menggunakan baris perintah. Perintah berikut akan menghubungkan MySQL yang berjalan di localhost sebagai pengguna root. Sebelum login, MySQL akan meminta kata sandi akun root.<\/p>\n<pre><strong>mysql -u root -p<\/strong>&#13;\n&#13;\nEnter password:&#13;\nWelcome to the MySQL monitor.  Commands end with ; or \\g.&#13;\nYour MySQL connection id is 5&#13;\nServer version: 5.7.25 MySQL Community Server (GPL)&#13;\n&#13;\nCopyright (c) 2000, 2019, Oracle and\/or its affiliates. All rights reserved.&#13;\n&#13;\nOracle is a registered trademark of Oracle Corporation and\/or its&#13;\naffiliates. Other names may be trademarks of their respective&#13;\nowners.&#13;\n&#13;\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.&#13;\n&#13;\nmysql&gt;&#13;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MySQL adalah sistem database relasional. Dalam tutorial kami sebelumnya, Anda menginstal Apache dan PHP di&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1886,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[255,72,41],"class_list":["post-1885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-amazon-linux","tag-linux-terminal","tag-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/\" \/>\n<meta property=\"og:locale\" content=\"id_ID\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid\" \/>\n<meta property=\"og:description\" content=\"MySQL adalah sistem database relasional. Dalam tutorial kami sebelumnya, Anda menginstal Apache dan PHP di&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Linuxid\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-18T05:36:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-28T15:41:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"667\" \/>\n\t<meta property=\"og:image:height\" content=\"220\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"xsand\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ditulis oleh\" \/>\n\t<meta name=\"twitter:data1\" content=\"xsand\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimasi waktu membaca\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 menit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/\",\"url\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/\",\"name\":\"Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid\",\"isPartOf\":{\"@id\":\"https:\/\/linuxid.net\/post\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg\",\"datePublished\":\"2019-03-18T05:36:49+00:00\",\"dateModified\":\"2025-03-28T15:41:13+00:00\",\"author\":{\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79\"},\"breadcrumb\":{\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#breadcrumb\"},\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage\",\"url\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg\",\"contentUrl\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg\",\"width\":667,\"height\":220},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Beranda\",\"item\":\"https:\/\/linuxid.net\/post\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial Cara Install MySQL 5.7 di Amazon Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxid.net\/post\/#website\",\"url\":\"https:\/\/linuxid.net\/post\/\",\"name\":\"Linuxid\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxid.net\/post\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"id\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79\",\"name\":\"xsand\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g\",\"caption\":\"xsand\"},\"url\":\"https:\/\/www.linuxid.net\/post\/author\/xsand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/","og_locale":"id_ID","og_type":"article","og_title":"Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid","og_description":"MySQL adalah sistem database relasional. Dalam tutorial kami sebelumnya, Anda menginstal Apache dan PHP di&hellip;","og_url":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/","og_site_name":"Linuxid","article_published_time":"2019-03-18T05:36:49+00:00","article_modified_time":"2025-03-28T15:41:13+00:00","og_image":[{"width":667,"height":220,"url":"https:\/\/linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg","type":"image\/jpeg"}],"author":"xsand","twitter_card":"summary_large_image","twitter_misc":{"Ditulis oleh":"xsand","Estimasi waktu membaca":"3 menit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/","url":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/","name":"Tutorial Cara Install MySQL 5.7 di Amazon Linux - Linuxid","isPartOf":{"@id":"https:\/\/linuxid.net\/post\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg","datePublished":"2019-03-18T05:36:49+00:00","dateModified":"2025-03-28T15:41:13+00:00","author":{"@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79"},"breadcrumb":{"@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#breadcrumb"},"inLanguage":"id","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/"]}]},{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#primaryimage","url":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg","contentUrl":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/MySQL-5.7-di-Amazon-Linux.jpg","width":667,"height":220},{"@type":"BreadcrumbList","@id":"https:\/\/linuxid.net\/post\/tutorial-cara-install-mysql-5-7-di-amazon-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Beranda","item":"https:\/\/linuxid.net\/post\/"},{"@type":"ListItem","position":2,"name":"Tutorial Cara Install MySQL 5.7 di Amazon Linux"}]},{"@type":"WebSite","@id":"https:\/\/linuxid.net\/post\/#website","url":"https:\/\/linuxid.net\/post\/","name":"Linuxid","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxid.net\/post\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"id"},{"@type":"Person","@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79","name":"xsand","image":{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g","caption":"xsand"},"url":"https:\/\/www.linuxid.net\/post\/author\/xsand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/comments?post=1885"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1885\/revisions"}],"predecessor-version":[{"id":2499,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1885\/revisions\/2499"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/media\/1886"}],"wp:attachment":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/media?parent=1885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/categories?post=1885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/tags?post=1885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}