{"id":239530,"date":"2021-08-20T14:31:36","date_gmt":"2021-08-20T21:31:36","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=239530"},"modified":"2021-08-20T14:31:37","modified_gmt":"2021-08-20T21:31:37","slug":"how-to-use-mysql-config-editor","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/","title":{"rendered":"How to use mysql_config_editor"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-background\">Background<\/h2>\n\n\n\n<p>When running a batch file on MySQL the login credentials must be taken from some file. The file choices are to use a clear-text options file or the more secure obfuscated login-file generated by the MySQL program mysql_config_editor (which comes installed with the MySQL Community edition). The documentation for the mysql_config_editor can be found at <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/mysql-config-editor.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/mysql-config-editor.html<\/a> (MySQL V. 8.0). Provided here is an example of mysql_config_editor being used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setup<\/h2>\n\n\n\n<p>The starting point for this example will be to mention that the MySQL installation does not automatically add a .mylogin.cnf file into your directory (Figure 1).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"244\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-1.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239531\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-1.png 490w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-1-480x239.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 490px, 100vw\" \/><figcaption><em>Figure 1 \u2013 The MySQL installation does not automatically create a .mylogin.cnf file<\/em><\/figcaption><\/figure>\n\n\n\n<p>Next, even though the default login-path will be &#8220;client&#8221; there does not automatically exist a login-path with that name (Figure 2).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"60\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-2.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239532\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-2.png 399w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-2-300x45.png 300w\" sizes=\"(max-width: 399px) 100vw, 399px\" \/><figcaption><em>Figure 2 \u2013 Since there is no .mylogin.cnf file there are no default login-paths<\/em><\/figcaption><\/figure>\n\n\n\n<p>The print \u2013all statement will come up again later in the example. For now, it&#8217;s important to note that it doesn&#8217;t return anything.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Set Command<\/h3>\n\n\n\n<p>Now that some setup has been taken care of, the example can continue with creation of the first login-path. From the MySQL documentation it is known the program command format is as follows:<\/p>\n\n\n\n<p>&#8220;mysql_config_editor set &#8211;login-path=LoginPathName &#8211;host=HostName &#8211;user=UserName &#8211;password &#8221; <\/p>\n\n\n\n<p>where additional options such as &#8211;port &#8211;socket and &#8211;help can be included.<\/p>\n\n\n\n<p>The example in Figure 3 uses the above format. For the first login-path &#8220;client&#8221; is used, which will be what the mysql client program defaults to when no login-path is provided.<\/p>\n\n\n\n<p>When the mysql_config_editor program is run with the &#8220;set&#8221; command for the first time, a .mylogin.cnf file is generated (Figure 3).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"338\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-3.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239533\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-3.png 624w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-3-480x260.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 624px, 100vw\" \/><figcaption><em>Figure 3 \u2013 A .mylogin.cnf file has been created after the use of the &#8220;set&#8221; command in mysql_config_editor<\/em><\/figcaption><\/figure>\n\n\n\n<p>For this example, a second login-path will be created with the name &#8220;someLoginPath&#8221; as a generic stand-in label.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"78\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-4.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239534\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-4.png 856w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-4-480x44.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 856px, 100vw\" \/><figcaption><em>Figure 4 \u2013 A second login-path is added to the .mylogin.cnf file<\/em><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The Print Command<\/h3>\n\n\n\n<p>Now the &#8220;print&#8221; command can be used to view all stored login-paths when paired with the &#8211;all option (Figure 5).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"201\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-5.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239535\"\/><figcaption><em>Figure 5 \u2013 One way to view all login-paths stored in the .mylogin.cnf file is to use the command &#8220;print&#8221; with the &#8211;all option<\/em><\/figcaption><\/figure>\n\n\n\n<p>Alternatively, should only a particular login-path be required the &#8220;print&#8221; command can be passed with a specific login-path as shown in Figure 6.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"125\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-6.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239536\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-6.png 470w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-6-300x80.png 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><figcaption><em>Figure 6 \u2013 A &#8220;print&#8221; command for only one specific login-path<\/em><\/figcaption><\/figure>\n\n\n\n<p>In order to confirm that the .mylogin.cnf file is not a clear-text file it can be opened with any text editor. The results for this example&#8217;s obfuscated .mylogin.cnf file are shown in Figure 7. The .mylogin.cnf file in Figure 7 is definitely not a clear-text file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-7.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239537\" width=\"715\" height=\"766\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-7.png 715w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-7-480x514.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 715px, 100vw\" \/><figcaption><em>Figure 7 \u2013 The obfuscated .mylogin.cnf file contents<\/em><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The Remove Command<\/h3>\n\n\n\n<p>Should a need to overwrite a login-path arise, this can be done one of two ways. The first is to run the &#8220;set&#8221; command with the new information which will overwrite the original contents of the passed login-path (Figure 8). The other way to change a login-path is by using the &#8220;remove&#8221; command passing the login-path name as an option along with any desired changes; this will remove any passed options from the login-path. If no options other than login-path are passed, the entire login-path is removed (Figure 9). After the removal of a login-path it will have to then be recreated using the &#8220;set&#8221; command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"623\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-8.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239538\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-8.png 858w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-8-480x349.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 858px, 100vw\" \/><figcaption><em>Figure 8 \u2013 The &#8220;set&#8221; command can be used to overwrite an existing login-path. A warning will show up and ask for confirmation. The &#8220;set&#8221; command will always overwrite the entire login-path meaning individual options cannot be added.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"281\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-9.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239539\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-9.png 597w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-9-480x226.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 597px, 100vw\" \/><figcaption><em>Figure 9 \u2013 The &#8220;remove&#8221; command can remove entire login-paths or individual options for a login-path.<\/em><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The Reset Command<\/h3>\n\n\n\n<p>In order to remove all login-paths the &#8220;reset&#8221; command is used. This will remove all login-paths from the .mylogin.cnf file, however the file will still exist (Figures 10 and 11).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"767\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-10.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239540\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-10.png 669w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-10-480x550.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 669px, 100vw\" \/><figcaption><em>Figure 10 \u2013 The &#8220;reset&#8221; command removes all login-paths from the .mylogin.cnf file, but does not remove the file itself.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"767\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-11.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239541\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-11.png 669w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-11-480x550.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 669px, 100vw\" \/><figcaption><em>Figure 11 \u2013 The .mylogin.cnf file after the &#8220;reset&#8221; command has been run. Clearly there is still information in this file, but it is not any login-path.<\/em><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The Help Command and Option<\/h3>\n\n\n\n<p>The order of the help command matters. It can be passed as an option to any of the mysql_config_editor commands, or as an option to the mysql_config_editor (See Figures 12 &#8211; 14).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"677\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-12.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239542\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-12.png 822w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-12-480x395.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 822px, 100vw\" \/><figcaption><em>Figure 12 \u2013 The help command run for the mysql_config_editor program.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"767\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-13.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239543\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-13.png 831w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-13-480x443.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 831px, 100vw\" \/><figcaption><em>Figure 13 \u2013 The &#8220;help&#8221; option as applied to the &#8220;set&#8221; command specifically.<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"186\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-14.png\" alt=\"MySQL mysql_config_editor Screenshot\" class=\"wp-image-239544\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-14.png 407w, https:\/\/virtual-dba.com\/wp-content\/uploads\/MySQL-mysql_config_editor-Screenshot-14-300x137.png 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><figcaption><em>Figure 14 \u2013 Although a &#8211;help option is allowed on the &#8220;set&#8221; command, without the leading hyphens a login-path named &#8220;help&#8221; can accidentally be created.<\/em><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Background When running a batch file on MySQL the login credentials must be taken from some file. The file choices are to use a clear-text options file or the more secure obfuscated login-file generated by the MySQL program mysql_config_editor (which comes installed with the MySQL Community edition). The documentation for the mysql_config_editor can be found [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":239549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,39],"tags":[4086,4113],"class_list":["post-239530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-mysql","tag-databases","tag-mysql-performance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to use mysql_config_editor - Batch File Secure Login<\/title>\n<meta name=\"description\" content=\"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use mysql_config_editor\" \/>\n<meta property=\"og:description\" content=\"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-20T21:31:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-20T21:31:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/media\/How-to-use-mysql_config_editor.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"557\" \/>\n\t<meta property=\"og:image:height\" content=\"291\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"XTIVIA\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:site\" content=\"@virtual_dba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"XTIVIA\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\"},\"author\":{\"name\":\"XTIVIA\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/2d86f74bed0c3f1b49100f7fdf7d78d1\"},\"headline\":\"How to use mysql_config_editor\",\"datePublished\":\"2021-08-20T21:31:36+00:00\",\"dateModified\":\"2021-08-20T21:31:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\"},\"wordCount\":794,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg\",\"keywords\":[\"databases\",\"mysql performance tuning\"],\"articleSection\":[\"Blog\",\"MySQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\",\"name\":\"How to use mysql_config_editor - Batch File Secure Login\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg\",\"datePublished\":\"2021-08-20T21:31:36+00:00\",\"dateModified\":\"2021-08-20T21:31:37+00:00\",\"description\":\"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg\",\"width\":557,\"height\":291,\"caption\":\"How to use mysql_config_editor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use mysql_config_editor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtual-dba.com\/#website\",\"url\":\"https:\/\/virtual-dba.com\/\",\"name\":\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"description\":\"Remote Database Administration\",\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtual-dba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/virtual-dba.com\/#organization\",\"name\":\"Virtual-DBA: Remote DBA | Remote Database Administration\",\"alternateName\":\"Virtual-DBA powered by XTIVIA\",\"url\":\"https:\/\/virtual-dba.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg\",\"width\":557,\"height\":291,\"caption\":\"Virtual-DBA: Remote DBA | Remote Database Administration\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/virtual_dba\",\"https:\/\/www.linkedin.com\/showcase\/36220649\/\",\"https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg\"],\"description\":\"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.\",\"email\":\"info@xtivia.com\",\"telephone\":\"8886853101\",\"legalName\":\"XTIVIA, Inc\",\"foundingDate\":\"1992-05-01\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"201\",\"maxValue\":\"500\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/2d86f74bed0c3f1b49100f7fdf7d78d1\",\"name\":\"XTIVIA\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0d3648a00e319a37cf8d6d19f762acfbbb4fd0320fd8a6d6b1e64f44a2a6f259?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0d3648a00e319a37cf8d6d19f762acfbbb4fd0320fd8a6d6b1e64f44a2a6f259?s=96&d=mm&r=g\",\"caption\":\"XTIVIA\"},\"url\":\"https:\/\/virtual-dba.com\/author\/xtivia\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to use mysql_config_editor - Batch File Secure Login","description":"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.","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:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/","og_locale":"en_US","og_type":"article","og_title":"How to use mysql_config_editor","og_description":"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.","og_url":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2021-08-20T21:31:36+00:00","article_modified_time":"2021-08-20T21:31:37+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/media\/How-to-use-mysql_config_editor.jpg","type":"image\/jpeg"}],"author":"XTIVIA","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"XTIVIA","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/"},"author":{"name":"XTIVIA","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/2d86f74bed0c3f1b49100f7fdf7d78d1"},"headline":"How to use mysql_config_editor","datePublished":"2021-08-20T21:31:36+00:00","dateModified":"2021-08-20T21:31:37+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/"},"wordCount":794,"commentCount":0,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg","keywords":["databases","mysql performance tuning"],"articleSection":["Blog","MySQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/","url":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/","name":"How to use mysql_config_editor - Batch File Secure Login","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg","datePublished":"2021-08-20T21:31:36+00:00","dateModified":"2021-08-20T21:31:37+00:00","description":"This is an example of how to use the mysql_config_editor program that includes sections set, print, remove, reset, and help to create a first .mylogin.cnf file.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-use-mysql_config_editor.jpg","width":557,"height":291,"caption":"How to use mysql_config_editor"},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/how-to-use-mysql-config-editor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"How to use mysql_config_editor"}]},{"@type":"WebSite","@id":"https:\/\/virtual-dba.com\/#website","url":"https:\/\/virtual-dba.com\/","name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Remote Database Administration","publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtual-dba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/virtual-dba.com\/#organization","name":"Virtual-DBA: Remote DBA | Remote Database Administration","alternateName":"Virtual-DBA powered by XTIVIA","url":"https:\/\/virtual-dba.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/V-DBA-Database-Services-and-Support-Featured-Logo.jpg","width":557,"height":291,"caption":"Virtual-DBA: Remote DBA | Remote Database Administration"},"image":{"@id":"https:\/\/virtual-dba.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/virtual_dba","https:\/\/www.linkedin.com\/showcase\/36220649\/","https:\/\/www.youtube.com\/channel\/UCx3AIeUQ2ziTLKZSJDZ-SEg"],"description":"Eliminate database downtime and spiraling costs with XTIVIA\u2019s Virtual-DBA. In today\u2019s always-on business world, gaps in 24x7 on-call DBA support, neglected maintenance and security, or a stretched team struggling with overwhelming workloads can lead to costly disruptions and threaten business continuity. XTIVIA\u2019s Virtual-DBA provides the immediate, expert database administration you need, exactly when you need it, ensuring optimal performance, ironclad security, and significant cost savings without the burden of expanding your in-house team. The goal of Virtual-DBA is to provide a cost-effective solution for organizations seeking to optimize the security, management, maintenance, availability, and performance of their critical business systems, whether self-managed or cloud-managed (e.g., AWS RDS, Azure SQL Database). We accomplish this through a comprehensive remote DBA service offering designed specifically to meet the Oracle\u00ae, DB2\u00ae, Informix\u00ae, MySQL\u2122, PostgreSQL\u00ae, MongoDB\u00ae, MariaDB, and Microsoft SQL Server\u00ae, CockroachDB, Databricks, AWS, and Azure needs of our clients.","email":"info@xtivia.com","telephone":"8886853101","legalName":"XTIVIA, Inc","foundingDate":"1992-05-01","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"201","maxValue":"500"}},{"@type":"Person","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/2d86f74bed0c3f1b49100f7fdf7d78d1","name":"XTIVIA","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0d3648a00e319a37cf8d6d19f762acfbbb4fd0320fd8a6d6b1e64f44a2a6f259?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0d3648a00e319a37cf8d6d19f762acfbbb4fd0320fd8a6d6b1e64f44a2a6f259?s=96&d=mm&r=g","caption":"XTIVIA"},"url":"https:\/\/virtual-dba.com\/author\/xtivia\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/239530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=239530"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/239530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/239549"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=239530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=239530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=239530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}