{"id":285,"date":"2021-06-24T07:38:18","date_gmt":"2021-06-24T07:38:18","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=285"},"modified":"2021-11-04T01:44:48","modified_gmt":"2021-11-04T01:44:48","slug":"set-mysql-root-password-after-new-installation-on-linux","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/","title":{"rendered":"Set mysql root password after new installation on Linux"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"285\" class=\"elementor elementor-285\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c834d42 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c834d42\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15b9563\" data-id=\"15b9563\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b3133ed elementor-widget elementor-widget-text-editor\" data-id=\"b3133ed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this article we will learn how to set <a href=\"https:\/\/hostandtech.com\/help\/category\/mysql\/\" target=\"_blank\" rel=\"noopener\">Mysql<\/a> root password on Linux.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c8c5f9d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c8c5f9d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a61cfca\" data-id=\"a61cfca\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7a24982 elementor-widget elementor-widget-heading\" data-id=\"7a24982\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is MySQL?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-493373d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"493373d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1aefef3\" data-id=\"1aefef3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3854eed elementor-widget elementor-widget-text-editor\" data-id=\"3854eed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It is an open source <a href=\"https:\/\/en.wikipedia.org\/wiki\/Relational_database#RDBMS\" target=\"_blank\" rel=\"noopener\">relational database management system, <\/a>like other SQLs (Standard Query Languages).<\/p><p>Mysql follows the client-server model and uses the relational model to create, store, and retrieve data. It stores data in a table or tables, and the stored data is relatable to other tables through the keys.<\/p><p>Because of its ease of use and readability, MySQL has been the go-to option for a lot of web-based applications such as Facebook, YouTube, and Twitter.<br \/>Moreover the source code can be changed to fit the programmer\u2019s needs.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-30aac1d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"30aac1d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d699eb3\" data-id=\"d699eb3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7d634b3 elementor-widget elementor-widget-heading\" data-id=\"7d634b3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to set MySQL root password on Linux?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cdff541 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cdff541\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-68a7ed2\" data-id=\"68a7ed2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ea04a29 elementor-widget elementor-widget-text-editor\" data-id=\"ea04a29\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Usually when a user install a fresh MySQL database server on Linux, the password of the root account is not set yet.<\/p><p>Here how to set the root password :<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ae52dd0 elementor-alert-info elementor-widget elementor-widget-alert\" data-id=\"ae52dd0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Note<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\">You must have root access on the server to reset the MySQL root password.<\/span>\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e016588 elementor-widget elementor-widget-text-editor\" data-id=\"e016588\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>First, login to your server using ssh as administrator privileges and apply the following command:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4392c0e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4392c0e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b972caa\" data-id=\"b972caa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5a52594 elementor-widget elementor-widget-code-highlight\" data-id=\"5a52594\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>\/usr\/bin\/mysqladmin -u root password \u2018your-new-password\u2019<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2deee18 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2deee18\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-86489b6\" data-id=\"86489b6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a8bd7e0 elementor-widget elementor-widget-text-editor\" data-id=\"a8bd7e0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u201cyour-new-password\u201d is the new required password for root mysql username.<\/p><p>follow this command to test the new password you created:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6515e15 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6515e15\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e90f854\" data-id=\"e90f854\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-475e459 elementor-widget elementor-widget-code-highlight\" data-id=\"475e459\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>\/usr\/bin\/mysql -u root -p\r\nEnter password:<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-097d963 elementor-widget elementor-widget-image\" data-id=\"097d963\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"567\" height=\"340\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\" class=\"attachment-large size-large wp-image-6693\" alt=\"set mysql root password\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png 567w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password-300x180.png 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b63efbc elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"b63efbc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"What Is MySQL And Why It Is Used?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;It is an open source relational database management system. Like other SQLs (Standard Query Languages).&lt;\/p&gt;&lt;p&gt;MySQL follows the client-server model and uses the relational model to create, store, and retrieve data. It stores data in a table or tables, and the stored data is relatable to other tables through the keys.&lt;\/p&gt;&lt;p&gt;Because of its ease of use and readability, MySQL has been the go-to option for a lot of web-based applications such as Facebook, YouTube, and Twitter.&lt;br \/&gt;moreover the source code can be changed to fit the programmer\u2019s needs.&lt;\/p&gt;\"\n                            }\n                                                    },\n                                             {\n                            \"@type\": \"Question\",\n                            \"name\": \"How To Set Mysql Root Password After New Installation On Linux?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;ol&gt;&lt;li&gt;First, login to your server using ssh as administrator privileges and apply the following command: \/usr\/bin\/mysqladmin -u root password \u2018your-new-password\u2019&lt;\/li&gt;&lt;li&gt;\u201cyour-new-password\u201d is the new required password for root mysql username. follow this command to test the new password you created: \/usr\/bin\/mysql -u root -p&lt;br \/&gt;Enter password:&lt;\/li&gt;&lt;\/ol&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In this article we will learn how to set Mysql root password on Linux. What is MySQL? It is an open source relational database management system, like other SQLs (Standard Query Languages). Mysql follows the client-server model and uses the relational model to create, store, and retrieve data. It stores data in a table or [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":6693,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250,253],"tags":[269,122,3,284],"class_list":["post-285","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-mysql","tag-dedicated-server","tag-linux","tag-mysql","tag-vps-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Set Mysql Root Password After A New Installation On Linux Server<\/title>\n<meta name=\"description\" content=\"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Set Mysql Root Password After A New Installation On Linux Server\" \/>\n<meta property=\"og:description\" content=\"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-24T07:38:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-04T01:44:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\" \/>\n\t<meta property=\"og:image:width\" content=\"567\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Host&amp;Tech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How To Set Mysql Root Password After A New Installation On Linux Server\" \/>\n<meta name=\"twitter:description\" content=\"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Host&amp;Tech Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\"},\"author\":{\"name\":\"Host&amp;Tech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83\"},\"headline\":\"Set mysql root password after new installation on Linux\",\"datePublished\":\"2021-06-24T07:38:18+00:00\",\"dateModified\":\"2021-11-04T01:44:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\"},\"wordCount\":203,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\",\"keywords\":[\"Dedicated Server\",\"Linux\",\"MysQL\",\"VPS Server\"],\"articleSection\":[\"Linux\",\"MySQL\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\",\"url\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\",\"name\":\"How To Set Mysql Root Password After A New Installation On Linux Server\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\",\"datePublished\":\"2021-06-24T07:38:18+00:00\",\"dateModified\":\"2021-11-04T01:44:48+00:00\",\"description\":\"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png\",\"width\":567,\"height\":340,\"caption\":\"set mysql root password\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set mysql root password after new installation on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83\",\"name\":\"Host&amp;Tech Support\",\"sameAs\":[\"https:\/\/hostandtech.com\/help\"],\"url\":\"https:\/\/hostandtech.com\/help\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Set Mysql Root Password After A New Installation On Linux Server","description":"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh","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:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How To Set Mysql Root Password After A New Installation On Linux Server","og_description":"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh","og_url":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2021-06-24T07:38:18+00:00","article_modified_time":"2021-11-04T01:44:48+00:00","og_image":[{"width":567,"height":340,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","type":"image\/png"}],"author":"Host&amp;Tech Support","twitter_card":"summary_large_image","twitter_title":"How To Set Mysql Root Password After A New Installation On Linux Server","twitter_description":"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"Host&amp;Tech Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/"},"author":{"name":"Host&amp;Tech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83"},"headline":"Set mysql root password after new installation on Linux","datePublished":"2021-06-24T07:38:18+00:00","dateModified":"2021-11-04T01:44:48+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/"},"wordCount":203,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","keywords":["Dedicated Server","Linux","MysQL","VPS Server"],"articleSection":["Linux","MySQL"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/","url":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/","name":"How To Set Mysql Root Password After A New Installation On Linux Server","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","datePublished":"2021-06-24T07:38:18+00:00","dateModified":"2021-11-04T01:44:48+00:00","description":"How to set Mysql root password after install a fresh Mysql database on Linux server, and how login to mysql using the new password via ssh","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/06\/set-mysql-root-password.png","width":567,"height":340,"caption":"set mysql root password"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/linux\/set-mysql-root-password-after-new-installation-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"Set mysql root password after new installation on Linux"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83","name":"Host&amp;Tech Support","sameAs":["https:\/\/hostandtech.com\/help"],"url":"https:\/\/hostandtech.com\/help\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=285"}],"version-history":[{"count":285,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/285\/revisions"}],"predecessor-version":[{"id":10564,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/285\/revisions\/10564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media\/6693"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}