{"id":23436,"date":"2024-06-21T16:36:24","date_gmt":"2024-06-21T16:36:24","guid":{"rendered":"https:\/\/linux.how2shout.com\/?p=23436"},"modified":"2024-06-21T16:36:30","modified_gmt":"2024-06-21T16:36:30","slug":"how-to-install-mysql-server-in-ubuntu-24-04-lts-linux","status":"publish","type":"post","link":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/","title":{"rendered":"How to install MySQL server in Ubuntu 24.04 LTS Linux"},"content":{"rendered":"\n<p>MySQL ( full form is My Structured Query Language) on Ubuntu 24.04 LTS Linux server allows users to create a database for storing data generated by various web applications such as WordPress, phpBB, PrestaShop, WooCommerce, SugarCRM, JIRA, and more. Some reasons behind its popularity are its open-source licensing, stability, performance, scalability, flexibility, compatibility, ease of use, and administration. We have listed just a few features. Several other factors make it a worldwide go-to choice for developers, businesses, and large-scale enterprises with relational database management systems (RDBMS). For those who don&#8217;t know, MariaDB is the fork of MySQL.<\/p>\n\n\n\n<p><strong>What do we need to install MySQL on Ubuntu?  <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu system (24.04, 23.04, 22.04, or 20.04).<\/li>\n\n\n\n<li>Sudo privileges or root access.<\/li>\n\n\n\n<li>A stable internet connection.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Update Ubuntu 24.04 System<\/h2>\n\n\n\n<p>On your Ubuntu Desktop or Server, access the command terminal and run the system update command to refresh the system repositories cache and install the latest version of existing packages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt update &amp;&amp; sudo apt upgrade <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Installing MySQL Server on Ubuntu 24.04<\/h2>\n\n\n\n<p>Installation of the MYSQL server on Ubuntu 24.04 is quite easy because the packages configuring this database server are directly available through Ubuntu&#8217;s default repository, which we can fetch using the APT package manager. The version of Mysql available to install was 8.x; here is the command to follow:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo apt install mysql-server<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"493\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/Installing-MySQL-Server-ubuntu-24.04.webp\" alt=\"Installing MySQL Server ubuntu 24.04\" class=\"wp-image-23441\"\/><\/figure>\n\n\n\n<p><strong>Verify the Installation:<\/strong><\/p>\n\n\n\n<p>After completing the command to install MYSQL, we can confirm its availability on our system by checking its version. You should see something like this output: &#8220;<em><code>mysql Ver 8.0.37-0ubuntu0.24.04.1 for Linux on x86_64 ((Ubuntu)<\/code>)<\/em>&#8220;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">mysql --version<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Start and Secure MySQL<\/h2>\n\n\n\n<p>The MySQL server service will automatically start after the installation, so let&#8217;s check its status.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo systemctl status MySQL --no-pager -l<\/code><\/pre>\n\n\n\n<p>However, if it has not been started yet, run the given command to start and enable the MYSQL server on Ubuntu 24.04. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo systemctl enable --now mysql<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"456\" src=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/Start-the-MySQL-database-service.webp\" alt=\"Start the MySQL database service\" class=\"wp-image-23443\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n\n<p><strong>Secure MySQL Installation:<\/strong><\/p>\n\n\n\n\n<p>To improve the security of the MySQL database instance, it offers an inbuilt script. This script creates a step-by-step wizard that new users can easily follow. Run the given command to call that script.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p><strong>During this process, you will be prompted to:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set a password for the MySQL root user (if not set during installation).<\/li>\n\n\n\n<li>Remove anonymous users.<\/li>\n\n\n\n<li>Disallow remote root login.<\/li>\n\n\n\n<li>Remove test databases.<\/li>\n\n\n\n<li>Reload privilege tables to apply changes.<\/li>\n\n\n\n<li>Answering &#8220;<strong>yes<\/strong>&#8221; to all prompts is recommended for a more secure installation.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Test MySQL Installation<\/h2>\n\n\n\n<p>We already know our MySQL is running in the background without any error in the previous step, now, let&#8217;s login and check it is allowing us or not.<\/p>\n\n\n\n<p><strong>Log In to MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo mysql -u root -p<\/code><\/pre>\n\n\n\n<p>The system will prompt you to enter the password for the root that is set while securing the Database server using the &#8220;<strong>mysql_secure_installation<\/strong>&#8221; command.  Once logged in, you will see the MySQL prompt.<\/p>\n\n\n\n<p><strong>To Exit the MySQL shell, simply type:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">exit;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Create a New Database and User (Optional)<\/h2>\n\n\n\n<p>Now, to use MySQL for any web application to store data, we need to create a new database and a user with permissions for that database. Here\u2019s how you can do it.<\/p>\n\n\n\n<p><strong>Log In to MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo mysql -u root -p<\/code><\/pre>\n\n\n\n<p><strong>Create a New Database:<\/strong> Replace &#8220;<strong>your_database_name&#8221; <\/strong>with your desired<strong> <\/strong>name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">CREATE DATABASE your_database_name;<\/code><\/pre>\n\n\n\n<p><strong>Create a New User:<\/strong> Replace &#8220;<strong>your_username<\/strong>&#8221; and &#8220;<strong>your_password<\/strong>&#8221; with your desired username and password.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">CREATE USER 'your_username'@'localhost' IDENTIFIED BY 'your_password';<\/code><\/pre>\n\n\n\n<p><strong>Grant Permissions to the User:<\/strong> After creating the database, assign permission to the user to use that database. Replace <strong>your_database_name<\/strong> with the database name you have created and <strong>your_username<\/strong> with the user&#8217;s name. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">GRANT ALL PRIVILEGES ON your_database_name.* TO 'your_username'@'localhost';<\/code><\/pre>\n\n\n\n<p><strong>Flush Privileges: <\/strong>Apply the changes made to the user permissions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p><strong>Exit MySQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">exit;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Configure MySQL (Optional)<\/h2>\n\n\n\n<p>Well, this step is completely optional and only required when an application has special requirements regarding using a MySQL server. The MySQL configuration files are located at <code>\/etc\/mysql\/my.cnf<\/code> and <code>\/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/code>. These files can be used to control the MySQL server\u2019s behavior. You can adjust settings, such as the bind address (for remote connections), buffer sizes, and logging options, using these files as needed.<\/p>\n\n\n\n<p>The &#8220;<strong>\/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/strong>&#8221; file is used to configure the MySQL server daemon (mysqld). It includes specific parameters for tuning the MySQL server&#8217;s behavior and performance. <\/p>\n\n\n\n<p>To open it, use &#8211; <code>sudo nano \/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/code><\/p>\n\n\n\n<p>The &#8220;<strong>\/etc\/mysql\/my. conf&#8221;<\/strong> file is a global configuration file for MySQL that serves as the primary entry point for its configuration settings and is read first when the MySQL server starts.<\/p>\n\n\n\n<p>To open and edit this file, use: <code>sudo nano \/etc\/mysql\/my.cnf<\/code><\/p>\n\n\n\n<p><strong>Restart MySQL:<\/strong> Don&#8217;t forget to restart MySQL service after performing any changes in its configuration file so that the system can apply them:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">sudo systemctl restart mysql<\/code><\/pre>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>The command lines of MySQL and MariaDB work similarly, so if you are familiar with one, you can operate the other as well. Here, we have learned the basic steps to install the MySQL server on Ubuntu 24.04. Now, you can start setting up web applications or managing existing SQL databases. <\/p>\n\n\n\n<p><strong>Other Articles:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-install-jump-server-on-ubuntu-24-04-or-22-04-lts\/\">How to install Jump Server on Ubuntu 24.04 or 22.04 LTS<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-install-python-2-7-on-ubuntu-24-04-noble-lts-linux\/\">How to install Python 2.7 on Ubuntu 24.04 Noble LTS Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/installing-node-js-and-npm-on-ubuntu-24-04-lts-linux\/\">Installing Node.js and NPM on Ubuntu 24.04 LTS Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-install-json-server-in-ubuntu-24-04-lts-linux\/\">How to install JSON Server in Ubuntu 24.04 LTS Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/linux.how2shout.com\/how-to-use-traceroute-command-in-linux-such-as-ubuntu\/\">How To Use traceroute Command in Linux such as Ubuntu<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>MySQL ( full form is My Structured Query Language) on Ubuntu 24.04 LTS Linux server allows users to create a database for storing data generated by various web applications such as WordPress, phpBB, PrestaShop, WooCommerce, SugarCRM, JIRA, and more. Some reasons behind its popularity are its open-source licensing, stability, performance, scalability, flexibility, compatibility, ease of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":23450,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[3],"tags":[3207],"class_list":{"0":"post-23436","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ubuntu","8":"tag-ubuntu-24-04"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install MySQL server in Ubuntu 24.04 LTS Linux - LinuxShout<\/title>\n<meta name=\"description\" content=\"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/\" \/>\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 server in Ubuntu 24.04 LTS Linux\" \/>\n<meta property=\"og:description\" content=\"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxShout\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/how2shout\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-21T16:36:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T16:36:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1257\" \/>\n\t<meta property=\"og:image:height\" content=\"788\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Heyan Maurya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:site\" content=\"@h2smedia\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Heyan Maurya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/\"},\"author\":{\"name\":\"Heyan Maurya\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\"},\"headline\":\"How to install MySQL server in Ubuntu 24.04 LTS Linux\",\"datePublished\":\"2024-06-21T16:36:24+00:00\",\"dateModified\":\"2024-06-21T16:36:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/\"},\"wordCount\":839,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp\",\"keywords\":[\"ubuntu 24.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#respond\"]}],\"copyrightYear\":\"2024\",\"copyrightHolder\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/\",\"name\":\"How to install MySQL server in Ubuntu 24.04 LTS Linux - LinuxShout\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp\",\"datePublished\":\"2024-06-21T16:36:24+00:00\",\"dateModified\":\"2024-06-21T16:36:30+00:00\",\"description\":\"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp\",\"width\":1257,\"height\":788,\"caption\":\"install MySQL server in Ubuntu 24.04 LTS Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linux.how2shout.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install MySQL server in Ubuntu 24.04 LTS Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#website\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"name\":\"LinuxShout\",\"description\":\"Find the open source solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\"},\"alternateName\":\"Linux how2shout\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linux.how2shout.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#organization\",\"name\":\"LinuxShout\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"contentUrl\":\"https:\\\/\\\/linux.how2shout.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Linux-Shout-Logo.png\",\"width\":503,\"height\":349,\"caption\":\"LinuxShout\"},\"image\":{\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/how2shout\",\"https:\\\/\\\/x.com\\\/h2smedia\",\"https:\\\/\\\/instagram.com\\\/h2smedia\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/h2smedia\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/how2shout\",\"https:\\\/\\\/youtube.com\\\/h2smedia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linux.how2shout.com\\\/#\\\/schema\\\/person\\\/102d73e20384ea409022d5bafddc0f72\",\"name\":\"Heyan Maurya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g\",\"caption\":\"Heyan Maurya\"},\"description\":\"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...\",\"sameAs\":[\"https:\\\/\\\/www.how2shout.com\\\/\"],\"url\":\"https:\\\/\\\/linux.how2shout.com\\\/author\\\/heyan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install MySQL server in Ubuntu 24.04 LTS Linux - LinuxShout","description":"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository","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:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to install MySQL server in Ubuntu 24.04 LTS Linux","og_description":"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository","og_url":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/","og_site_name":"LinuxShout","article_publisher":"https:\/\/www.facebook.com\/how2shout","article_published_time":"2024-06-21T16:36:24+00:00","article_modified_time":"2024-06-21T16:36:30+00:00","og_image":[{"width":1257,"height":788,"url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp","type":"image\/webp"}],"author":"Heyan Maurya","twitter_card":"summary_large_image","twitter_creator":"@h2smedia","twitter_site":"@h2smedia","twitter_misc":{"Written by":"Heyan Maurya","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#article","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/"},"author":{"name":"Heyan Maurya","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72"},"headline":"How to install MySQL server in Ubuntu 24.04 LTS Linux","datePublished":"2024-06-21T16:36:24+00:00","dateModified":"2024-06-21T16:36:30+00:00","mainEntityOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/"},"wordCount":839,"commentCount":0,"publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp","keywords":["ubuntu 24.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#respond"]}],"copyrightYear":"2024","copyrightHolder":{"@id":"https:\/\/linux.how2shout.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/","url":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/","name":"How to install MySQL server in Ubuntu 24.04 LTS Linux - LinuxShout","isPartOf":{"@id":"https:\/\/linux.how2shout.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"image":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp","datePublished":"2024-06-21T16:36:24+00:00","dateModified":"2024-06-21T16:36:30+00:00","description":"Installation of the MYSQL database server on Ubuntu 24.04 is easy because its packages are available through its default repository","breadcrumb":{"@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#primaryimage","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2024\/06\/install-MySQL-server-in-Ubuntu-24.04-LTS-Linux.webp","width":1257,"height":788,"caption":"install MySQL server in Ubuntu 24.04 LTS Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linux.how2shout.com\/how-to-install-mysql-server-in-ubuntu-24-04-lts-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linux.how2shout.com\/"},{"@type":"ListItem","position":2,"name":"How to install MySQL server in Ubuntu 24.04 LTS Linux"}]},{"@type":"WebSite","@id":"https:\/\/linux.how2shout.com\/#website","url":"https:\/\/linux.how2shout.com\/","name":"LinuxShout","description":"Find the open source solutions","publisher":{"@id":"https:\/\/linux.how2shout.com\/#organization"},"alternateName":"Linux how2shout","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linux.how2shout.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linux.how2shout.com\/#organization","name":"LinuxShout","url":"https:\/\/linux.how2shout.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/","url":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","contentUrl":"https:\/\/linux.how2shout.com\/wp-content\/uploads\/2020\/06\/Linux-Shout-Logo.png","width":503,"height":349,"caption":"LinuxShout"},"image":{"@id":"https:\/\/linux.how2shout.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/how2shout","https:\/\/x.com\/h2smedia","https:\/\/instagram.com\/h2smedia","https:\/\/www.linkedin.com\/company\/h2smedia\/","https:\/\/www.pinterest.com\/how2shout","https:\/\/youtube.com\/h2smedia"]},{"@type":"Person","@id":"https:\/\/linux.how2shout.com\/#\/schema\/person\/102d73e20384ea409022d5bafddc0f72","name":"Heyan Maurya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b07b375c19891b0589da722cb1e3dff333ec63dd8467afc114611044e87cfe9a?s=96&d=mm&r=g","caption":"Heyan Maurya"},"description":"I have a keen interest in all kinds of technologies, from consumer-tech to enterprise solutions. However, I am still trying to learn Linux and whatever the problems I face, trying to give solutions for the same, here...","sameAs":["https:\/\/www.how2shout.com\/"],"url":"https:\/\/linux.how2shout.com\/author\/heyan\/"}]}},"_links":{"self":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/comments?post=23436"}],"version-history":[{"count":10,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23436\/revisions"}],"predecessor-version":[{"id":23454,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/posts\/23436\/revisions\/23454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media\/23450"}],"wp:attachment":[{"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/media?parent=23436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/categories?post=23436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux.how2shout.com\/wp-json\/wp\/v2\/tags?post=23436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}