{"id":8902,"date":"2019-09-17T19:05:51","date_gmt":"2019-09-18T02:05:51","guid":{"rendered":"http:\/\/www.mysqltutorial.org\/?page_id=8902"},"modified":"2023-12-18T06:17:35","modified_gmt":"2023-12-18T13:17:35","slug":"start-mysql-server","status":"publish","type":"page","link":"https:\/\/www.mysqltutorial.org\/mysql-administration\/start-mysql-server\/","title":{"rendered":"Start MySQL Server"},"content":{"rendered":"\n<p><strong>Summary<\/strong>: in this tutorial, you will learn how to start MySQL Server on Windows and Linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Start MySQL Server on Linux<\/h2>\n\n\n\n<p>To start MySQL Server on Linux, you follow these steps:<\/p>\n\n\n\n<p>First, open the Terminal program.<\/p>\n\n\n\n<p>Second, run the following command to start the MySQL service:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">sudo systemctl start mysql<\/code><\/span><\/pre>\n\n\n<p>In this command, you need to replace the &#8220;mysql&#8221; with the actual service name if the MySQL service is different.<\/p>\n\n\n\n<p>Third, check the status and confirm that the service has started successfully, you run the following command:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">sudo systemctl status mysql<\/code><\/span><\/pre>\n\n\n<p>If the MySQL service has started successfully, you should see &#8220;<code>Active: active (running)<\/code>&#8220;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Start MySQL Server on Windows<\/h2>\n\n\n\n<p>Typically, the MySQL installer installs the MySQL Server as a service on Windows and starts the MySQL Server automatically when the Windows operating system starts up. If this is not the case, you can start the MySQL Server using the following steps:<\/p>\n\n\n\n<p>First, open the <code>Run<\/code> dialog by pressing <code>Windows+R<\/code> keyboard shortcut.<\/p>\n\n\n\n<p>Second, type <code>cmd<\/code> and press <code>Ctrl+Shift+Enter<\/code> to run the Command Prompt as an administrator.<\/p>\n\n\n\n<p>Third, type the following command:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">sc query mysql<\/code><\/span><\/pre>\n\n\n<p>In this command, <code>mysql<\/code> is the name of the MySQL service that you specified when setting up MySQL. You can replace it with the one on your server.<\/p>\n\n\n\n<p>This command shows the following output:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">SERVICE_NAME: mysql\n        TYPE               : 10  WIN32_OWN_PROCESS\n        STATE              : 1  STOPPED\n        WIN32_EXIT_CODE    : 0  (0x0)\n        SERVICE_EXIT_CODE  : 0  (0x0)\n        CHECKPOINT         : 0x0\n        WAIT_HINT          : 0x0<\/code><\/span><\/pre>\n\n\n<p>The <code>STATE<\/code> line indicates that the MySQL Server is currently <code>STOPPED<\/code>. <\/p>\n\n\n\n<p>Finally, use the <code>net start<\/code> command to start the MySQL Server:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">net start mysql<\/code><\/span><\/pre>\n\n\n<p>It&#8217;ll show the following output:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">The MySQL service is starting.\nThe MySQL service was started successfully.<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the <code>sudo systemctl start mysql<\/code> command to start MySQL server on Linux.<\/li>\n\n\n\n<li>Use the  <code>net start &lt;mysql_service&gt;<\/code> command to start MySQL Server on Windows.<\/li>\n<\/ul>\n<div class=\"helpful-block-content\" data-title=\"\">\n\t<header>\n\t\t<div class=\"wth-question\">Was this tutorial helpful? <\/div>\n\t\t<div class=\"wth-thumbs\">\n\t\t\t<button\n\t\t\t\tdata-post=\"8902\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/start-mysql-server\/\"\n\t\t\t\tdata-post-title=\"Start MySQL Server\"\n\t\t\t\tdata-response=\"1\"\n\t\t\t\tclass=\"wth-btn-rounded wth-yes-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tclass=\"feather feather-thumbs-up block w-full h-full\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> Yes <\/span>\n\t\t\t<\/button>\n\n\t\t\t<button\n\t\t\t\tdata-response=\"0\"\n\t\t\t\tdata-post=\"8902\"\n\t\t\t\tdata-post-url=\"https:\/\/www.mysqltutorial.org\/mysql-administration\/start-mysql-server\/\"\n\t\t\t\tdata-post-title=\"Start MySQL Server\"\n\t\t\t\tclass=\"wth-btn-rounded wth-no-btn\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17\"\n\t\t\t\t\t><\/path>\n\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"sr-only\"> No <\/span>\n\t\t\t<\/button>\n\t\t<\/div>\n\t<\/header>\n\n\t<div class=\"wth-form hidden\">\n\t\t<div class=\"wth-form-wrapper\">\n\t\t\t<div class=\"wth-title\"><\/div>\n\t\t\t\n\t\t\t<textarea class=\"wth-message\"><\/textarea>\n\n\t\t\t<button class=\"btn btn-primary wth-btn-submit\">Send<\/button>\n\t\t\t<button class=\"btn wth-btn-cancel\">Cancel<\/button>\n\t\t\n\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to start MySQL Server on Windows and Linux.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":441,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8902","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Start MySQL Server on Windows &amp; Linux<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.\" \/>\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.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Start MySQL Server on Windows &amp; Linux\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"MySQL Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-18T13:17:35+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-adminsitration\\\/start-mysql\\\/\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-adminsitration\\\/start-mysql\\\/\",\"name\":\"How to Start MySQL Server on Windows & Linux\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\"},\"datePublished\":\"2019-09-18T02:05:51+00:00\",\"dateModified\":\"2023-12-18T13:17:35+00:00\",\"description\":\"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-adminsitration\\\/start-mysql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-adminsitration\\\/start-mysql\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-adminsitration\\\/start-mysql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL Administration\",\"item\":\"https:\\\/\\\/www.mysqltutorial.org\\\/mysql-administration\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Start MySQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mysqltutorial.org\\\/#website\",\"url\":\"https:\\\/\\\/www.mysqltutorial.org\\\/\",\"name\":\"MySQL Tutorial\",\"description\":\"A comprehensive MySQL Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mysqltutorial.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Start MySQL Server on Windows & Linux","description":"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.","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.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/","og_locale":"en_US","og_type":"article","og_title":"How to Start MySQL Server on Windows & Linux","og_description":"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.","og_url":"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/","og_site_name":"MySQL Tutorial","article_modified_time":"2023-12-18T13:17:35+00:00","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/","url":"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/","name":"How to Start MySQL Server on Windows & Linux","isPartOf":{"@id":"https:\/\/www.mysqltutorial.org\/#website"},"datePublished":"2019-09-18T02:05:51+00:00","dateModified":"2023-12-18T13:17:35+00:00","description":"In this tutorial, you will learn step by step to start the MySQL Server on Windows and Linux.","breadcrumb":{"@id":"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mysqltutorial.org\/mysql-adminsitration\/start-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mysqltutorial.org\/"},{"@type":"ListItem","position":2,"name":"MySQL Administration","item":"https:\/\/www.mysqltutorial.org\/mysql-administration\/"},{"@type":"ListItem","position":3,"name":"Start MySQL Server"}]},{"@type":"WebSite","@id":"https:\/\/www.mysqltutorial.org\/#website","url":"https:\/\/www.mysqltutorial.org\/","name":"MySQL Tutorial","description":"A comprehensive MySQL Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mysqltutorial.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/8902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/comments?post=8902"}],"version-history":[{"count":5,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/8902\/revisions"}],"predecessor-version":[{"id":13349,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/8902\/revisions\/13349"}],"up":[{"embeddable":true,"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/pages\/441"}],"wp:attachment":[{"href":"https:\/\/www.mysqltutorial.org\/wp-json\/wp\/v2\/media?parent=8902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}