{"id":50600,"date":"2025-12-31T12:30:00","date_gmt":"2025-12-31T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=50600"},"modified":"2025-11-17T11:32:37","modified_gmt":"2025-11-17T17:32:37","slug":"how-to-install-mysql-on-debian-13","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/","title":{"rendered":"How to Install MySQL on Debian 13"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp\" alt=\"How to Install MySQL on Debian 13\" class=\"wp-image-50623\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>MySQL is one of the most popular open-source relational database management systems (RDBMS). It is widely used for web applications, data warehousing, and logging applications. With the release of Debian 13 (Trixie), many users are eager to set up a MySQL environment for development or production. This guide walks you through the installation and initial configuration of MySQL on Debian 13.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent 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-69eec235d3317\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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-69eec235d3317\"  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:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Step-1-Update-the-Package-Index\" >Step 1: Update the Package Index<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Step-2-Install-MySQL-Server-repository\" >Step 2: Install MySQL Server repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Step-3-Install-MySQL-server\" >Step 3: Install MySQL server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Step-4-Check-the-MySQL-Service\" >Step 4: Check the MySQL Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Step-5-Configuring-mysql-community-server\" >Step 5: Configuring mysql-community-server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Optional-Create-a-MySQL-User\" >Optional: Create a MySQL User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u2022 A <a href=\"https:\/\/www.rosehosting.com\/debian-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">system running Debian 13<\/a> (Trixie) where MySQL can be installed<br>\u2022 A user account with sudo privileges<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-update-the-package-index\"><span class=\"ez-toc-section\" id=\"Step-1-Update-the-Package-Index\"><\/span>Step 1: Update the Package Index<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before installing any packages, make sure your system is up-to-date, especially when you&#8217;re preparing to run MySQL on Debian 13:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<p>This updates the package lists and upgrades existing packages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-mysql-server-repository\"><span class=\"ez-toc-section\" id=\"Step-2-Install-MySQL-Server-repository\"><\/span>Step 2: Install MySQL Server repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, let\u2019s install the dependencies needed for installing the MySQL server apt repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install wget gnupg<\/code><\/pre>\n\n\n\n<p>You will then need to install the MySQL apt repository; the apt repository is not installed by default. Installing this is crucial for setting up MySQL on Debian 13 effectively. You can download the deb package and install it with the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># wget https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.36-1_all.deb<\/code><\/pre>\n\n\n\n<p>Now you can install the MySQL repository information package with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># dpkg -i mysql-apt-config_0.8.36-1_all.deb<\/code><\/pre>\n\n\n\n<p>You will be presented with a package configuration screen to select the MySQL product you wish to configure. You can select the first option and click Enter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"563\" height=\"357\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image.png\" alt=\"Configuring MySQL APT Config\" class=\"wp-image-51320\" style=\"width:606px;height:auto\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image.png 563w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-300x190.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-150x95.png 150w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Then, for the next screen, you can select the second option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"555\" height=\"349\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-1.png\" alt=\"MySQL on Debian 13\" class=\"wp-image-51321\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-1.png 555w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-1-300x189.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-1-150x94.png 150w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Continue by selecting this option and then clicking on OK, and run the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update<\/code><\/pre>\n\n\n\n<p>With this, the MySQL repository will be installed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-install-mysql-server\"><span class=\"ez-toc-section\" id=\"Step-3-Install-MySQL-server\"><\/span>Step 3: Install MySQL server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now you can run the MySQL server install with the command, ensuring MySQL works seamlessly on your Debian 13 system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install mysql-server<\/code><\/pre>\n\n\n\n<p>At the start of the installation process, you will be asked to set up a MySQL root password to protect your MySQL server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"551\" height=\"360\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-2-e1763400457691.png\" alt=\"MySQL server configuration\" class=\"wp-image-51322\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-2-e1763400457691.png 551w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-2-e1763400457691-300x196.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/12\/image-2-e1763400457691-150x98.png 150w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Then, you will be asked to enter the root password again. Once you click OK, the installation will begin.<\/p>\n\n\n\n<p>When the installation is completed, you can check the MySQL server version installed with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysql --version\nmysql  Ver 8.4.7 for Linux on x86_64 (MySQL Community Server - GPL)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-check-the-mysql-service\"><span class=\"ez-toc-section\" id=\"Step-4-Check-the-MySQL-Service\"><\/span>Step 4: <strong>Check the MySQL Service<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once the installation is completed, you can check if MySQL is up and running with, confirming successful deployment of MySQL on Debian 13.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># systemctl status mysql<\/code><\/pre>\n\n\n\n<p>If the MySQL service is running, you will receive a similar output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u25cf mysql.service - MySQL Community Server\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/mysql.service; enabled; preset: enabled)\n     Active: active (running) since Thu 2025-11-13 06:45:35 EST; 17min ago\n Invocation: f4cd33e6b87244988508d6904696fed0\n       Docs: man:mysqld(8)\n             http:&#47;&#47;dev.mysql.com\/doc\/refman\/en\/using-systemd.html\n   Main PID: 3407 (mysqld)\n     Status: \"Server is operational\"\n      Tasks: 35 (limit: 2297)\n     Memory: 429.3M (peak: 434.9M)\n        CPU: 6.115s\n     CGroup: \/system.slice\/mysql.service\n             \u2514\u25003407 \/usr\/sbin\/mysqld\n\nNov 13 06:45:34 debian systemd&#91;1]: Starting mysql.service - MySQL Community Server...\nNov 13 06:45:35 debian systemd&#91;1]: Started mysql.service - MySQL Community Server.\n<\/code><\/pre>\n\n\n\n<p>To manually start, stop, or restart MySQL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#  systemctl start mysql\n#  systemctl stop mysql\n#  systemctl restart mysql<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-configuring-mysql-community-server\"><span class=\"ez-toc-section\" id=\"Step-5-Configuring-mysql-community-server\"><\/span>Step 5: Configuring mysql-community-server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You should also run the <strong>mysql_secure_installation<\/strong> command, which runs a script that will take you through a series of steps to further secure your MySQL server. It will ask you if you want to remove the anonymous users, remove the test databases, and if you would like to restrict root login.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysql_secure_installation<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Securing the MySQL server deployment.\n\nEnter password for user root:\n\nVALIDATE PASSWORD COMPONENT can be used to test passwords\nand improve security. It checks the strength of password\nand allows the users to set only those passwords which are\nsecure enough. Would you like to setup VALIDATE PASSWORD component?\n\nPress y|Y for Yes, any other key for No: y\n\nThere are three levels of password validation policy:\n\nLOW    Length &gt;= 8\nMEDIUM Length &gt;= 8, numeric, mixed case, and special characters\nSTRONG Length &gt;= 8, numeric, mixed case, special characters and dictionary                  file\n\nPlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: mysql_secure_installation<\/code><\/pre>\n\n\n\n<p><br>You should choose 2 or \u201cStrong\u201d password validation policy or at least MEDIUM to protect your database server.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Please provide a strong password that will be set for the root account of your MySQL database. Leave it blank to enable password less login using UNIX socket based authentication.\nYou will need to enter the MySQL root password here.\n\nEnter root password:<\/code><\/pre>\n\n\n\n<p>Once you type the password and press enter, you will receive the password strength score, and you will be asked if you want to continue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Estimated strength of the password: 100\nDo you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) :\nYou can enter Y and continue.<\/code><\/pre>\n\n\n\n<p>If you wish to continue, enter Y, and for the next question, you can also select &#8220;Yes&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y\nNormally, root should only be allowed to connect from\n'localhost'. This ensures that someone cannot guess at\nthe root password from the network.\n\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : Y\nSuccess.\n\nBy default, MySQL comes with a database named 'test' that\nanyone can access. This is also intended only for testing,\nand should be removed before moving into a production\nenvironment.\n\n\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) :\nY\nBy default, MySQL comes with a database named 'test' that\nanyone can access. This is also intended only for testing,\nand should be removed before moving into a production\nenvironment.\n\n\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : Y\n - Dropping test database...\nSuccess.\n\n - Removing privileges on test database...\nSuccess.\n\nReloading the privilege tables will ensure that all changes\nmade so far will take effect immediately.\n\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : Y\nSuccess.\n\nAll done!<\/code><\/pre>\n\n\n\n<p>With this, you have completed the mysql_secure_installation script, solidifying your MySQL setup on Debian 13.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-optional-create-a-mysql-user\"><span class=\"ez-toc-section\" id=\"Optional-Create-a-MySQL-User\"><\/span><strong>Optional: Create a MySQL User<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can log in to the MySQL terminal with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysql -u root -p<\/code><\/pre>\n\n\n\n<p>To create a new user that uses a password to connect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER 'username'@'localhost' IDENTIFIED BY 'strongpassword';<\/code><\/pre>\n\n\n\n<p>You can now create a database and all privileges on this database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE newdb;\nGRANT ALL PRIVILEGES ON newdb.* TO 'newuser'@'localhost' WITH GRANT OPTION;<\/code><\/pre>\n\n\n\n<p>And you can now flush the privileges.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You now have a fully functional MySQL server running on Debian 13. You can start creating databases, managing users, and integrating with your applications. Always remember to secure your databases, especially if they are exposed to external networks. You have added the MySQL repository by selecting the version of MySQL you want to install on Debian 13, and successfully finished the installation. Of course, you don\u2019t have to do any of this if you use one of our Debian Hosting services. In that case, you can ask our expert Linux admins to set this up for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n\n\n\n<p>If you liked this post on how to install MySQL on Debian 13, please share it with your friends. MySQL&#8217;s presence on Debian 13 enhances its database capabilities. Leave a comment below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL is one of the most popular open-source relational database management systems (RDBMS). It is widely used for web applications, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install MySQL on Debian 13\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#more-50600\" aria-label=\"Read more about How to Install MySQL on Debian 13\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":50623,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,1700],"tags":[2265,1603,39],"class_list":["post-50600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-debian","tag-debian-13","tag-how-to-install","tag-mysql","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install MySQL on Debian 13 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install MySQL on Debian 13 using our latest guide, or ask one of our expert Linux sys admins to configure it all for you.\" \/>\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.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/\" \/>\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 13\" \/>\n<meta property=\"og:description\" content=\"How to Install MySQL on Debian 13 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-31T18:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install MySQL on Debian 13\",\"datePublished\":\"2025-12-31T18:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/\"},\"wordCount\":687,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/how-to-install-mysql-on-debian-13.webp\",\"keywords\":[\"debian 13\",\"how to install\",\"mysql\"],\"articleSection\":[\"Databases\",\"Debian\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/\",\"name\":\"How to Install MySQL on Debian 13 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/how-to-install-mysql-on-debian-13.webp\",\"datePublished\":\"2025-12-31T18:30:00+00:00\",\"description\":\"Learn how to install MySQL on Debian 13 using our latest guide, or ask one of our expert Linux sys admins to configure it all for you.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/how-to-install-mysql-on-debian-13.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/how-to-install-mysql-on-debian-13.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to Install MySQL on Debian 13\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mysql-on-debian-13\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MySQL on Debian 13\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install MySQL on Debian 13 | RoseHosting","description":"Learn how to install MySQL on Debian 13 using our latest guide, or ask one of our expert Linux sys admins to configure it all for you.","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.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MySQL on Debian 13","og_description":"How to Install MySQL on Debian 13 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2025-12-31T18:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install MySQL on Debian 13","datePublished":"2025-12-31T18:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/"},"wordCount":687,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp","keywords":["debian 13","how to install","mysql"],"articleSection":["Databases","Debian"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/","name":"How to Install MySQL on Debian 13 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp","datePublished":"2025-12-31T18:30:00+00:00","description":"Learn how to install MySQL on Debian 13 using our latest guide, or ask one of our expert Linux sys admins to configure it all for you.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2025\/08\/how-to-install-mysql-on-debian-13.webp","width":1024,"height":576,"caption":"How to Install MySQL on Debian 13"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mysql-on-debian-13\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install MySQL on Debian 13"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/50600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=50600"}],"version-history":[{"count":5,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/50600\/revisions"}],"predecessor-version":[{"id":51326,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/50600\/revisions\/51326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/50623"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=50600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=50600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=50600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}