{"id":2180,"date":"2024-07-15T12:30:00","date_gmt":"2024-07-15T17:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=2180"},"modified":"2024-06-25T10:39:33","modified_gmt":"2024-06-25T15:39:33","slug":"how-to-install-mysql-on-debian-12","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/","title":{"rendered":"How to Install MySQL on Debian 12"},"content":{"rendered":"\n<p id=\"block-f92fab39-86ed-4f9f-ae05-d6266a90d2f7\">MySQL is a Database Management System (DBMS) with basic Structured Query Language (SQL) commands. Web developers often use MySQL when creating applications and websites. It is the most popular open-source database engine. MySQL Database has been developed in close collaboration with users for over 25 years, making it an open-source platform with many features. This means there&#8217;s a high chance that MySQL supports your favorite application or programming language. This article will show you how to install MySQL on Debian 12.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-b639bf91-4413-4d2b-8a90-6141bc86b95f\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\" id=\"block-98a85a41-5dd1-4d08-8482-9e41b2da2f90\">\n<li>Debian 12<\/li>\n\n\n\n<li>SSH root access or a regular system user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"block-27217f9c-ce01-42e1-8c15-909efa5154a4\">Conventions<\/h3>\n\n\n\n<pre id=\"block-14d39a69-434a-40e4-8ba1-0410552b7ff7\" class=\"wp-block-preformatted\"># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command<br>$ \u2013 given commands should be executed as a regular user<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-e4dedc36-6587-41a9-bf5a-a67d74b31142\">Login to the server<\/h2>\n\n\n\n<p id=\"block-7d1bb4ed-14d9-4b11-b379-328efed49098\">First, log in to your Debian 12 server through SSH as the root user:<\/p>\n\n\n\n<pre id=\"block-32039d17-943d-4a49-ab89-f085641ee3a3\" class=\"wp-block-preformatted\">ssh master@IP_Address -p Port_number<\/pre>\n\n\n\n<p id=\"block-bb4b2f3b-553e-4a52-a423-6c67397eeb94\">You must replace \u2018IP_Address\u2018 and \u2018Port_number\u2018 with your server\u2019s IP address and SSH port number. Replace &#8216;master&#8217; with root or your other Debian 12 system user with sudo privileges.<\/p>\n\n\n\n<p id=\"block-fb7b0f2d-1b69-4bda-89b3-fe46d9f8906d\">You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n\n\n\n<pre id=\"block-190ada32-b988-48c7-a4b0-c852babdb5fd\" class=\"wp-block-preformatted\">$ lsb_release -a<\/pre>\n\n\n\n<p id=\"block-ce10e72e-4a3f-487f-895e-4d54c8673b05\">You should get this output:<\/p>\n\n\n\n<pre id=\"block-8b1f4aed-54a9-4e15-90d1-0253aa0df1ae\" class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Debian<br>Description: Debian GNU\/Linux 12 (bookworm)<br>Release: 12<br>Codename: bookworm<\/pre>\n\n\n\n<p id=\"block-95072bae-c8e6-4002-8852-d1ce87f14d97\">Before starting, you have to make sure that all Debian 12 OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n<pre id=\"block-99878461-b64d-497b-8d91-592669f6e3a2\" class=\"wp-block-preformatted\">$ sudo apt update -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-eaba3217-2ecf-4d1c-9358-eba22cb4319a\">Install MySQL Server<\/h2>\n\n\n\n<p id=\"block-6ab2eaba-da82-4e1d-9645-024e1d5959c9\">The easiest and most common method of installing a MySQL server is to use apt-get to install it from the default Debian 12 repository. However, Debian 12 ships a MariaDB server as the default SQL server, not MYSQL. If you want to install a MySQL server instead of a MariaDB server, you must first add a MySQL repository.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"block-d82e9640-9316-4d9b-a32c-5b3d04059248\">Add MySQL repository<\/h3>\n\n\n\n<p id=\"block-0d98c967-7ffd-4cfb-abed-584d5f863e63\">This is the step we must complete before installing the MySQL server. You must navigate to this <a href=\"https:\/\/dev.mysql.com\/downloads\/repo\/apt\/\" target=\"_blank\" rel=\"noreferrer noopener\">download page <\/a>and click the &#8216;Download&#8217; button. On the next page, right-click on &#8216;No thanks, just start my download.&#8217; and copy the <a href=\"https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.30-1_all.deb\" target=\"_blank\" rel=\"noreferrer noopener\">download link<\/a>. <\/p>\n\n\n\n<p id=\"block-2f683f56-2dd7-4740-abf1-23066ef5fceb\">After getting the download link, we can execute this command to download it to our Debian 12 machine.<\/p>\n\n\n\n<pre id=\"block-af421728-5218-4089-ad81-5f67487aa4b0\" class=\"wp-block-preformatted\">$ wget https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.30-1_all.deb<\/pre>\n\n\n\n<p id=\"block-96e70bc0-ff41-471c-95ce-710bb5b5d467\">Next, we can install it by running this command:<\/p>\n\n\n\n<pre id=\"block-68530175-b71d-4f26-abfc-4612e4d7e187\" class=\"wp-block-preformatted\">$ sudo apt install .\/mysql-apt-config_0.8.30-1_all.deb<\/pre>\n\n\n\n<p id=\"block-89fc8f26-cfb3-4f74-a663-3e92ae53594e\">Replace the downloaded file name if you have a different one. After executing the command above, you will see this on your screen:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select.jpg\"><img decoding=\"async\" width=\"970\" height=\"214\" data-id=\"2182\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select-970x214.jpg\" alt=\"Install MySQL on Debian 12\" class=\"wp-image-2182\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select-970x214.jpg 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select-470x104.jpg 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select-768x170.jpg 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-product-select.jpg 1245w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p id=\"block-f16d7a0e-bb3a-4e5b-8122-1a9065864e2b\">Choose MySQL server &amp; Cluster, then hit OK<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select.jpg\"><img decoding=\"async\" width=\"970\" height=\"228\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select-970x228.jpg\" alt=\"Install MySQL on Debian\" class=\"wp-image-2183\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select-970x228.jpg 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select-470x111.jpg 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select-768x181.jpg 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-version-select.jpg 1262w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/figure>\n\n\n\n<p id=\"block-f9d7bdfa-3ad6-44f7-921a-264498522314\">Here, you can choose which MYSQL version you want, choose one, then hit OK<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok.jpg\"><img decoding=\"async\" width=\"970\" height=\"213\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok-970x213.jpg\" alt=\"MySQL on Debian 12\" class=\"wp-image-2184\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok-970x213.jpg 970w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok-470x103.jpg 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok-768x168.jpg 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/06\/mysql-select-ok.jpg 1250w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/figure>\n\n\n\n<p id=\"block-1cb30ed6-bbb0-4150-9b7e-d47e6bef97b6\">Now, the installation will bring you to this step. This time, choose OK as shown in the picture, then select OK at the bottom, and then hit ENTER<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-79898a20-dd13-4e4c-8e0b-a84dd1b8cca4\">Complete Installation<\/h2>\n\n\n\n<p id=\"block-4dcc72d0-8c62-4faf-b478-ec954159c2cc\">After completing the previous step, we need to refresh the package information on our Debian 12 system by running this command. If you don&#8217;t run this command, then you will not be able to install the MySQL server:<\/p>\n\n\n\n<pre id=\"block-b82a27e6-ac04-46a4-b23c-fc5ef3de506e\" class=\"wp-block-preformatted\">$ sudo apt update<\/pre>\n\n\n\n<p id=\"block-21aa2ebb-b177-4cf2-aef7-49b038ee42f7\">That&#8217;s it, and you should be able to install the MySQL server now.<\/p>\n\n\n\n<pre id=\"block-9cf542da-5473-4c40-b523-6a071b4099cb\" class=\"wp-block-preformatted\">$ sudo apt install mysql-server<\/pre>\n\n\n\n<p id=\"block-0f8f84c0-e062-428c-a647-c442b55a9004\">Follow the instructions on the screen, such as creating a MySQL root password, choosing a strong password, and then waiting for the installation to finish. Make sure to create a strong password that you can remember.<\/p>\n\n\n\n<p id=\"block-00fca825-863a-4382-8639-e839cf625d74\">In just a few moments, the MySQL server should be successfully installed and started automatically. It is also configured to run automatically upon server reboot. To verify that MySQL is running, you can run this command:<\/p>\n\n\n\n<pre id=\"block-03ef4127-a563-4fe9-ba42-07998c89847f\" class=\"wp-block-preformatted\">$ sudo systemctl status mysql<\/pre>\n\n\n\n<p id=\"block-d180ee42-4308-4efc-ad1f-30be38da3b23\">The command will show you an output like this:<\/p>\n\n\n\n<pre id=\"block-b2216711-7a94-40e2-ad40-bb56400fce4a\" class=\"wp-block-preformatted\">\u25cf mysql.service - MySQL Community Server<br>     Loaded: loaded (\/lib\/systemd\/system\/mysql.service; enabled; preset: enabled)<br>     Active: active (running) since Wed 2024-06-12 13:59:05 UTC; 53s ago<br>       Docs: man:mysqld(8)<br>             http:\/\/dev.mysql.com\/doc\/refman\/en\/using-systemd.html<br>   Main PID: 60431 (mysqld)<br>     Status: \"Server is operational\"<br>      Tasks: 35 (limit: 2251)<br>     Memory: 473.2M<br>        CPU: 684s<br>     CGroup: \/system.slice\/mysql.service<br>             \u2514\u250060431 \/usr\/sbin\/mysqld<\/pre>\n\n\n\n<p id=\"block-7fc313e3-a060-4c08-8f51-135dca2f37ae\">At this point, you can log in to MySQL shell using the password you created earlier.<\/p>\n\n\n\n<pre id=\"block-e40a3999-42ea-4dbe-839d-84ca1a36df79\" class=\"wp-block-preformatted\">$ mysql -u root -p<\/pre>\n\n\n\n<p id=\"block-43ac3163-4c14-4a26-81d8-58a9f68695a6\">After hitting the password, it will bring you to the MySQL shell<\/p>\n\n\n\n<pre id=\"block-bc53493b-bf2a-45e2-a8a3-dbe2a469cfe6\" class=\"wp-block-preformatted\">Welcome to the MySQL monitor.  Commands end with ; or \\g.<br>Your MySQL connection id is 67<br>Server version: 8.4.0 MySQL Community Server - GPL<br><br>Copyright (c) 2000, 2024, Oracle and\/or its affiliates.<br><br>Oracle is a registered trademark of Oracle Corporation and\/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.<br><br>Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.<br><br>mysql&gt;<\/pre>\n\n\n\n<p id=\"block-d2a638c0-d2dc-4a67-8089-62fae049d79a\">You can see on your screen that you have installed MySQL version 8.4.0. At the time you follow this article, the version may be different if you choose another version or use a different mysql-apt-config debian package.<\/p>\n\n\n\n<p id=\"block-058d9a50-68a5-45d0-a74d-268a6f5bab8e\">Congratulations! You have followed this article, and now you can install MySQL on Debian 12.<\/p>\n\n\n\n<p id=\"block-86b799ec-309d-466f-aa69-3f2ab9ddc2be\">PS. If you liked this post, please share it with your friends or leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL is a Database Management System (DBMS) with basic Structured Query Language (SQL) commands. Web developers often use MySQL when creating applications and websites. It is the most popular open-source database engine. MySQL Database has been developed in close collaboration with users for over 25 years, making it an open-source platform with many features. This &#8230; <a title=\"How to Install MySQL on Debian 12\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/\" aria-label=\"More on How to Install MySQL on Debian 12\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":2202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272,271,13],"tags":[110,312,168,114],"class_list":["post-2180","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-debian","category-tutorials","tag-debian","tag-debian-12","tag-how-to-install","tag-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install MySQL on Debian 12 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/\" \/>\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 on Debian 12 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-15T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install MySQL on Debian 12\",\"datePublished\":\"2024-07-15T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/\"},\"wordCount\":632,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/how-to-install-mysql-on-debian-12.jpg\",\"keywords\":[\"debian\",\"debian 12\",\"how to install\",\"mysql\"],\"articleSection\":[\"Databases\",\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/\",\"name\":\"How to Install MySQL on Debian 12 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/how-to-install-mysql-on-debian-12.jpg\",\"datePublished\":\"2024-07-15T17:30:00+00:00\",\"description\":\"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/how-to-install-mysql-on-debian-12.jpg\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/how-to-install-mysql-on-debian-12.jpg\",\"width\":742,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-mysql-on-debian-12\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MySQL on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install MySQL on Debian 12 | LinuxCloudVPS Blog","description":"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.","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:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MySQL on Debian 12 | LinuxCloudVPS Blog","og_description":"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2024-07-15T17:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install MySQL on Debian 12","datePublished":"2024-07-15T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/"},"wordCount":632,"commentCount":4,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg","keywords":["debian","debian 12","how to install","mysql"],"articleSection":["Databases","Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/","name":"How to Install MySQL on Debian 12 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg","datePublished":"2024-07-15T17:30:00+00:00","description":"Learn how to install MySQL on Debian 12 using our incredibly easy to follow step-by-step guide. It really is that easy.","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/07\/how-to-install-mysql-on-debian-12.jpg","width":742,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-mysql-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install MySQL on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=2180"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":2192,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2180\/revisions\/2192"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/2202"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}