{"id":491,"date":"2019-09-16T09:18:54","date_gmt":"2019-09-16T03:48:54","guid":{"rendered":"https:\/\/www.itsupportwale.com\/blog\/?p=491"},"modified":"2026-02-17T15:58:17","modified_gmt":"2026-02-17T10:28:17","slug":"how-to-install-mysql-8-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/","title":{"rendered":"How To Install MySQL 8 On Ubuntu 18.04"},"content":{"rendered":"\n<p>In this article, we learn how to install and initially configure MySql 8.0 Server on Ubuntu 18.04 LTS Server.<\/p>\n\n\n\n<p>Mysql is one of the most used and famous Relational Database Server available on the internet because It is very reliable and secure and also it&#8217;s easy to learn and operate it. MySql uses SQL &#8220;Structured Query Language&#8221; for performing operations.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" label=\" (opens in a new tab)\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-latest-php-7-3-on-ubuntu-18-04\/\" target=\"_blank\">How to Install Latest PHP 7.3 on Ubuntu 18.04<\/a><\/li><li><a rel=\"noreferrer noopener\" label=\" (opens in a new tab)\" href=\"https:\/\/itsupportwale.com\/blog\/creating-a-backup-user-with-read-only-permission-for-mysql-db\/\" target=\"_blank\">Creating a backup user with read-only permission for MySQL DB<\/a><\/li><\/ul>\n\n\n\n<p>We will learn it in some simple steps. So let&#8217;s start with the first step.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d7e2d030e73\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d7e2d030e73\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_1_Download_MySql_8_Package\" >Step 1: Download MySql 8 Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_2_Configure_MySql_8_Package\" >Step 2: Configure MySql 8 Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_3_Install_MySql_8_Package\" >Step 3: Install MySql 8 Package<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_31_Set_MySql_root_password\" >Step 3.1: Set MySql root password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_32_Choose_MySql_authentication_method\" >Step 3.2: Choose MySql authentication method<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_33_Confirm_MySql_installation\" >Step 3.3: Confirm MySql installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_34_Secure_MySql_installation\" >Step 3.4: Secure MySql installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_35_Start_and_Enable_MySql_service\" >Step 3.5: Start and Enable MySql service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Step_36_Get_access_to_MySql_Server\" >Step 3.6: Get access to MySql Server<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#Summary\" >Summary:<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Download_MySql_8_Package\"><\/span>Step 1: Download MySql 8 Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>At the very first step, we have to Download the MySql repository using the <strong>wget<\/strong> command : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.13-1_all.deb<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>For more options see: https:\/\/dev.mysql.com\/downloads\/mysql\/<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Configure_MySql_8_Package\"><\/span>Step 2: Configure MySql 8 Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After that, install the repository package using below command: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg -i mysql-apt-config_0.8.13-1_all.deb<\/code><\/pre>\n\n\n\n<p>Select <strong>OK<\/strong> when asked for choosing MySql product to configure but By default, the latest version 8 is selected like the below image.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"449\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation.jpg\" alt=\"\" class=\"wp-image-753\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation.jpg 914w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-300x147.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-768x377.jpg 768w\" sizes=\"auto, (max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Install_MySql_8_Package\"><\/span>Step 3: Install MySql 8 Package<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After this, use the below command for begun the installation of MySql Community Server 8. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get install mysql-server<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Note: <\/strong>Run below commands only if you get an error like this &#8211; <strong>&#8220;mysql-server : Depends: mysql-community-server (= 8.0.12-1ubuntu18.04) but it is not going to be installed&#8221;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository universe\nsudo apt update\nsudo apt install libmecab2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_31_Set_MySql_root_password\"><\/span>Step 3.1: Set MySql root password<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In the first step, you need to set up the root user password for MySql Server because the &#8220;root&#8221; is the default user for the MySql server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"418\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-root-password.jpg\" alt=\"mysql-8-installation-root-password\" class=\"wp-image-755\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-root-password.jpg 903w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-root-password-300x139.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-installation-root-password-768x356.jpg 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_32_Choose_MySql_authentication_method\"><\/span>Step 3.2: Choose MySql authentication method<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In this step, you have to choose the default authentication plugin for MySQL.  <\/p>\n\n\n\n<p><strong>Remember<\/strong>: if you choose the first option &#8220;Strong Password Encryption&#8221; then the Old Authentication method will not work and your old Web Application did not work if you do not update them according to MySql 8 because the SQL Query for password authentication is changed. <\/p>\n\n\n\n<p>That&#8217;s why if you want to run a previously developed web application with MySql 8, I suggest the Second option &#8220;Legacy Authentication Method&#8221;. You can see the options in the below image: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"363\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-default-authenitcation-plugin.jpg\" alt=\"Install MySQL 8 default-authenitcation-plugin\" class=\"wp-image-758\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-default-authenitcation-plugin.jpg 782w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-default-authenitcation-plugin-300x139.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-default-authenitcation-plugin-768x357.jpg 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_33_Confirm_MySql_installation\"><\/span>Step 3.3: Confirm MySql installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After that, confirm that the MySQL server is successfully installed in our system with running the below command: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -l | grep \"mysql-community\"<\/code><\/pre>\n\n\n\n<p> Now, you should see the following output: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"370\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-verify-install.jpg\" alt=\"\" class=\"wp-image-760\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-verify-install.jpg 671w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-verify-install-300x165.jpg 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_34_Secure_MySql_installation\"><\/span>Step 3.4: Secure MySql installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>By default, MySQL installation is a little insecure and therefore we need to secure it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p>After that, you will be asked to choose some options. At first step, you will be asked for MySQL root password which one you create during MySQL installation.<br>In the next step, you will be asked to choose whether to enable the &#8220;<strong>Validate Password&#8221;<\/strong> plugin or not because this plugin is used for checking MySql user password for a standard format to increase the security. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"425\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation.jpg\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation.jpg 797w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-300x160.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-768x410.jpg 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/figure>\n\n\n\n<p>After that, you have to choose yes or no for some security questions but I recommend that you should choose the below-given answers:   <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Remove anonymous users? (Press y)<\/li><li>Disallow root login remotely? (Press y)<\/li><li>Remove test database and access to it? (Press y)<\/li><li>Reload privilege tables now? (Press y)<\/li><\/ul>\n\n\n\n<p>After that, you should get the below screen:  <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"894\" height=\"611\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-success.jpg\" alt=\"\" class=\"wp-image-767\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-success.jpg 894w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-success-300x205.jpg 300w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-secure-installation-success-768x525.jpg 768w\" sizes=\"auto, (max-width: 894px) 100vw, 894px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_35_Start_and_Enable_MySql_service\"><\/span>Step 3.5: Start and Enable MySql service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After that let&#8217;s enable the MySQL server for boot time and start the server by below commands: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start mysql\nsudo systemctl enable mysql\nsudo systemctl status mysql<\/code><\/pre>\n\n\n\n<p>After that, you should get the below status: <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"99\" src=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-server-status.jpg\" alt=\"mysql-server-status.jpg\" class=\"wp-image-771\" srcset=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-server-status.jpg 708w, https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-server-status-300x42.jpg 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/figure>\n\n\n\n<p>Now we have successfully installed and running MySql database server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_36_Get_access_to_MySql_Server\"><\/span>Step 3.6: Get access to MySql Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After that, you can try to login in with the below commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysql -uroot -pMypassword<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>If you don&#8217;t like to work on CLI mode you can <a rel=\"noreferrer noopener\" label=\"Install PhpMyadmin for MySql GUI (opens in a new tab)\" href=\"https:\/\/itsupportwale.com\/blog\/creating-a-backup-user-with-read-only-permission-for-mysql-db\/\" target=\"_blank\">Install PhpMyadmin for MySql GUI<\/a>.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So in this tutorial, we successfully learn how to install and securing MySql 8 Database Server but if you feel that something is missing or hard to understatnd, please mention that in the comment section. Also, you can suggest topics for the next article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we learn how to install and initially configure MySql 8.0 Server on Ubuntu 18.04 LTS Server. Mysql is one of the most used and famous Relational Database Server available on the internet because It is very reliable and secure and also it&#8217;s easy to learn and operate it. MySql uses SQL &#8220;Structured &#8230; <a title=\"How To Install MySQL 8 On Ubuntu 18.04\" class=\"read-more\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\" aria-label=\"Read more  on How To Install MySQL 8 On Ubuntu 18.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":853,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[218,6,2,7],"tags":[271,264,263,262,261,259,265,267,272,268,269,270,260],"class_list":["post-491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql-db","category-os","category-tutorials","category-ubuntu","tag-how-do-i-install-mysql-8-0-linux-ubuntu","tag-how-to-install-mysql","tag-how-to-install-mysql-8-in-ubuntu-18-04","tag-how-to-install-mysql-8-ubuntu-18-04","tag-how-to-install-mysql-latest-version-on-ubuntu-18-04","tag-how-to-install-mysql-on-ubuntu-18-04","tag-how-to-install-mysql-server-on-ubuntu-18-04","tag-install-mysql-8-on-ubuntu-18","tag-install-mysql-8-server","tag-mysql-8-on-ubuntu-18","tag-mysql-8-with-ubuntu-18","tag-ubuntu-18-mysql-tutorial","tag-ubuntu-18-04-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale<\/title>\n<meta name=\"description\" content=\"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale\" \/>\n<meta property=\"og:description\" content=\"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"ITSupportWale\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-16T03:48:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T10:28:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Techie\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Techie\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\"},\"author\":{\"name\":\"Techie\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\"},\"headline\":\"How To Install MySQL 8 On Ubuntu 18.04\",\"datePublished\":\"2019-09-16T03:48:54+00:00\",\"dateModified\":\"2026-02-17T10:28:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\"},\"wordCount\":624,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg\",\"keywords\":[\"How do I Install MySQL 8.0 Linux Ubuntu\",\"how to install mysql\",\"how to install mysql 8 in ubuntu 18.04\",\"how to install mysql 8 ubuntu 18.04\",\"how to install mysql latest version on ubuntu 18.04\",\"how to install mysql on ubuntu 18.04\",\"how to install mysql server on ubuntu 18.04\",\"install mysql 8 on ubuntu 18\",\"install mysql 8 server\",\"mysql 8 on ubuntu 18\",\"mysql 8 with ubuntu 18\",\"ubuntu 18 mysql tutorial\",\"ubuntu 18.04 mysql\"],\"articleSection\":[\"mysql server\",\"Operating System\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\",\"name\":\"How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg\",\"datePublished\":\"2019-09-16T03:48:54+00:00\",\"dateModified\":\"2026-02-17T10:28:17+00:00\",\"description\":\"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.\",\"breadcrumb\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg\",\"width\":1200,\"height\":600,\"caption\":\"mysql 8 in ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itsupportwale.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install MySQL 8 On Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"name\":\"ITSupportWale\",\"description\":\"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides\",\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\",\"name\":\"itsupportwale\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"width\":1119,\"height\":144,\"caption\":\"itsupportwale\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\",\"name\":\"Techie\",\"sameAs\":[\"https:\/\/itsupportwale.com\",\"iswblogadmin\"],\"url\":\"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale","description":"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.","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:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale","og_description":"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.","og_url":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/","og_site_name":"ITSupportWale","article_publisher":"https:\/\/www.facebook.com\/Itsupportwale-298547177495978","article_published_time":"2019-09-16T03:48:54+00:00","article_modified_time":"2026-02-17T10:28:17+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg","type":"image\/jpeg"}],"author":"Techie","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Techie","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/"},"author":{"name":"Techie","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d"},"headline":"How To Install MySQL 8 On Ubuntu 18.04","datePublished":"2019-09-16T03:48:54+00:00","dateModified":"2026-02-17T10:28:17+00:00","mainEntityOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/"},"wordCount":624,"commentCount":0,"publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg","keywords":["How do I Install MySQL 8.0 Linux Ubuntu","how to install mysql","how to install mysql 8 in ubuntu 18.04","how to install mysql 8 ubuntu 18.04","how to install mysql latest version on ubuntu 18.04","how to install mysql on ubuntu 18.04","how to install mysql server on ubuntu 18.04","install mysql 8 on ubuntu 18","install mysql 8 server","mysql 8 on ubuntu 18","mysql 8 with ubuntu 18","ubuntu 18 mysql tutorial","ubuntu 18.04 mysql"],"articleSection":["mysql server","Operating System","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/","url":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/","name":"How To Install MySQL 8 On Ubuntu 18.04 - ITSupportWale","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg","datePublished":"2019-09-16T03:48:54+00:00","dateModified":"2026-02-17T10:28:17+00:00","description":"To Install MySql 8, we have to Download the MySql repository using the wget command. After that confgiure the installation package with these commands.","breadcrumb":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2019\/09\/mysql-8-in-ubuntu.jpg","width":1200,"height":600,"caption":"mysql 8 in ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/itsupportwale.com\/blog\/how-to-install-mysql-8-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsupportwale.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install MySQL 8 On Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/itsupportwale.com\/blog\/#website","url":"https:\/\/itsupportwale.com\/blog\/","name":"ITSupportWale","description":"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides","publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itsupportwale.com\/blog\/#organization","name":"itsupportwale","url":"https:\/\/itsupportwale.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","width":1119,"height":144,"caption":"itsupportwale"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Itsupportwale-298547177495978"]},{"@type":"Person","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d","name":"Techie","sameAs":["https:\/\/itsupportwale.com","iswblogadmin"],"url":"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/comments?post=491"}],"version-history":[{"count":10,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"predecessor-version":[{"id":4695,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/491\/revisions\/4695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media\/853"}],"wp:attachment":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}