{"id":242162,"date":"2024-02-22T15:24:43","date_gmt":"2024-02-22T22:24:43","guid":{"rendered":"https:\/\/virtual-dba.com\/?p=242162"},"modified":"2024-06-03T12:19:50","modified_gmt":"2024-06-03T19:19:50","slug":"how-to-build-a-cockroachdb-sandbox-on-windows","status":"publish","type":"post","link":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/","title":{"rendered":"How to Build a CockroachDB Sandbox on Windows"},"content":{"rendered":"\n<p>Setting up a lab environment on your local machine to run CockroachDB is very helpful for learning about this exciting database platform and testing applications locally. This article outlines the procedure for setting up a local installation of CockroachDB on a Windows system. It&#8217;s based on <a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/install-cockroachdb-windows\" target=\"_blank\" rel=\"noreferrer noopener\">CockroachDB&#8217;s documentation<\/a> but adds significant quality-of-life enhancements.<\/p>\n\n\n\n<p>All steps are performed in a PowerShell terminal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for Installing CockroachDB 23.2.1<\/h2>\n\n\n\n<p><strong>1. Install CockroachDB:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$ErrorActionPreference<\/mark> = \"Stop\"\n\nPS C:\\> &#91;Net.ServicePointManager]::SecurityProtocol = &#91;Net.SecurityProtocolType]::Tls12\n\nPS C:\\> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$ProgressPreference<\/mark> = 'SilentlyContinue'\n\nPS C:\\> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$null<\/mark> = <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">New-Item<\/mark> -Type Directory -Force <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$env:appdata<\/mark>\/cockroach\n\nPS C:\\> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">Invoke-WebRequest<\/mark> `\n>> -Uri https:\/\/binaries.cockroachdb.com\/cockroach-v23.2.1.windows-6.2-amd64.zip `\n>> -OutFile cockroach.zip\n\nPS C:\\> Expand-Archive -Force -Path cockroach.zip\n\nPS C:\\> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">Copy-Item<\/mark> -Force `\n>> \"cockroach\/cockroach-v23.2.1.windows-6.2-amd64\/cockroach.exe\" `\n>> -Destination <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$env:appdata<\/mark>\/cockroach\n\nPS C:\\> $Env:PATH += \"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">;$env:appdata<\/mark>\/cockroach\"<\/code><\/pre>\n\n\n\n<p><strong>2. Verify installation<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\&gt; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">cockroach<\/mark> version\nBuild Tag:        v23.2.1\nBuild Time:       2024\/02\/15 22:46:32\nDistribution:     CCL\nPlatform:         windows amd64 (x86_64-w64-mingw32)\nGo Version:       go1.21.5 X:no coverage redesign\nC Compiler:       gcc 6.5.0\nBuild Commit ID:  898cd6a363fd47bb92a03bac216f9bed0f64bc08\nBuild Type:       release\nEnabled Assertions: false<\/code><\/pre>\n\n\n\n<p>After installation, you must add the CockroachDB path to your PowerShell profile to run Cockroach commands. This is necessary because after you spin up a local Cockroach node, you will need to use a new PowerShell terminal for all other work, and without setting the environment path, the cockroach commands will fail.<\/p>\n\n\n\n<p><strong>3. If the profile file does not exist, create it and add a line to append the location of the cockroach executable to your path:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\&gt; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">if<\/mark> (!(<mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">Test-Path<\/mark> -Path <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$PROFILE<\/mark>)) {\n&gt;&gt;   <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">New-Item<\/mark> -ItemType File -Path <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$PROFILE<\/mark> -Force\n&gt;&gt; }\n\n\n    Directory: C:\\Users\\mpetros\\Documents\\WindowsPowerShell\n\n\nMode                LastWriteTime         Length Name\n----                -------------         ------ ----\n-a----        2\/22\/2024   8:03 AM              0 Microsoft.PowerShell_profile.ps1\n\n\nPS C:\\&gt; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">Add-Content<\/mark> -Path <mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff00\" class=\"has-inline-color\">$PROFILE<\/mark> '$Env:Path += \";$env:appdata\/cockroach\"'<\/code><\/pre>\n\n\n\n<p>This completes the steps required for installation.<\/p>\n\n\n\n<p>To start a single-node CockroachDB cluster:<\/p>\n\n\n\n<p><strong>4. Start a local single node cluster<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\&gt; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">cockroach<\/mark> start-single-node --insecure --listen-addr localhost \n*\n* WARNING: ALL SECURITY CONTROLS HAVE BEEN DISABLED!\n*\n* This mode is intended for non-production testing only.\n*\n* In this mode:\n* - Your cluster is open to any client that can access localhost.\n* - Intruders with access to your machine or network can observe client-server traffic.\n* - Intruders can log in without a password and read or write any data in the cluster.\n* - Intruders can consume all your server's resources and cause unavailability.\n*\n*\n* INFO: To start a secure server without mandating TLS for clients,\n* consider --accept-sql-without-tls instead. For other options, see:\n*\n* - https:\/\/go.crdb.dev\/issue-v\/53404\/v23.2\n* - https:\/\/www.cockroachlabs.com\/docs\/v23.2\/secure-a-cluster.html\n*\n*\n* WARNING: Running a server without --sql-addr, with a combined RPC\/SQL listener, is deprecated.\n* This feature will be removed in a later version of CockroachDB.\n*\nCockroachDB node starting at 2024-02-22 16:09:49.0881121 +0000 UTC m=+5.528598401 (took 5.0s)\nbuild:               CCL v23.2.1 @ 2024\/02\/15 22:46:32 (go1.21.5 X:no coverage redesign)\nwebui:               http:\/\/localhost:8080\nsql:                 postgresql:\/\/root@localhost:26257\/defaultdb?sslmode=disable\nsql (JDBC):          jdbc:postgresql:\/\/localhost:26257\/defaultdb?sslmode=disable&amp;user=root\nRPC client flags:    C:\\Users\\mpetros\\AppData\\Roaming\/cockroach\\cockroach.exe &lt;client cmd&gt; --host=localhost:26257 --insecure\nlogs:                C:\\Users\\mpetros\\cockroach-data\\logs\ntemp dir:            C:\\Users\\mpetros\\cockroach-data\\cockroach-temp2685956849\nexternal I\/O path:   C:\\Users\\mpetros\\cockroach-data\\extern\nstore&#91;0]:            path=C:\\Users\\mpetros\\cockroach-data\nstorage engine:      pebble\nclusterID:           e45c29dc-d1c7-4332-83ac-6879dd264a64\nstatus:              initialized new cluster\nnodeID:              1<\/code><\/pre>\n\n\n\n<p><strong>5. Verify that the cluster is running as expected:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy the WebUI address from the output of the previous command:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1716\" height=\"1158\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-webui-address.jpg\" alt=\"how to build a cockroachdb lab on windows webui address\" class=\"wp-image-242164\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-webui-address.jpg 1716w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-webui-address-1280x864.jpg 1280w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-webui-address-980x661.jpg 980w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-webui-address-480x324.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1716px, 100vw\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open a browser and paste the address. If everything worked, you should see the CockroachDB admin console.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1740\" height=\"1238\" src=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-admin-console.png\" alt=\"how to build a cockroachdb lab on windows admin console\" class=\"wp-image-242163\" srcset=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-admin-console.png 1740w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-admin-console-1280x911.png 1280w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-admin-console-980x697.png 980w, https:\/\/virtual-dba.com\/wp-content\/uploads\/how-to-build-a-cockroachdb-lab-on-windows-admin-console-480x342.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1740px, 100vw\" \/><\/figure>\n\n\n\n<p><strong>6. To query the database, open a second PowerShell terminal and start Cockroach SQL:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\&gt; <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">cockroach<\/mark> sql --insecure\n#\n# Welcome to the CockroachDB SQL shell.\n# All statements must be terminated by a semicolon.\n# To exit, type: \\q.\n#\n# Server version: CockroachDB CCL v23.2.1 (x86_64-w64-mingw32, built 2024\/02\/15 22:46:32, go1.21.5 X:nocoverageredesign) (same version as client)\n# Cluster ID: b10b6a9e-7600-4ca5-bfa2-769aab09778d\n#\n# Enter \\? for a brief introduction.\n#\nroot@localhost:26257\/defaultdb&gt;<\/code><\/pre>\n\n\n\n<p>You are ready to run CockroachDB commands from here and learn how to do things on this exciting platform.<\/p>\n\n\n\n<p>The official site for CockroachDB learning and knowledge can be found at: <a href=\"https:\/\/www.cockroachlabs.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.cockroachlabs.com\/docs\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Setting up a CockroachDB lab on Windows is a straightforward process that enables you to explore and test this powerful database platform locally. Following the outlined steps, you can quickly establish a local single-node CockroachDB cluster and experiment with its features and capabilities.<\/p>\n\n\n\n<p>For questions or more information, please <a href=\"https:\/\/virtual-dba.com\/contact-us\/\">get in touch with XTIVIA today!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up a lab environment on your local machine to run CockroachDB is very helpful for learning about this exciting database platform and testing applications locally. This article outlines the procedure for setting up a local installation of CockroachDB on a Windows system. It&#8217;s based on CockroachDB&#8217;s documentation but adds significant quality-of-life enhancements. All steps [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":242165,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[4166,3918],"tags":[],"class_list":["post-242162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-database"],"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 Build a CockroachDB Sandbox on Windows - Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts<\/title>\n<meta name=\"description\" content=\"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.\" \/>\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-build-a-cockroachdb-sandbox-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Build a CockroachDB Sandbox on Windows\" \/>\n<meta property=\"og:description\" content=\"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-22T22:24:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-03T19:19:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.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=\"Marc Petros\" \/>\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=\"Marc Petros\" \/>\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:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\"},\"author\":{\"name\":\"Marc Petros\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/df5834301b0edec142d0a2da82460c46\"},\"headline\":\"How to Build a CockroachDB Sandbox on Windows\",\"datePublished\":\"2024-02-22T22:24:43+00:00\",\"dateModified\":\"2024-06-03T19:19:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\"},\"wordCount\":315,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/virtual-dba.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg\",\"articleSection\":[\"Blog\",\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\",\"url\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\",\"name\":\"How to Build a CockroachDB Sandbox on Windows - Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts\",\"isPartOf\":{\"@id\":\"https:\/\/virtual-dba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg\",\"datePublished\":\"2024-02-22T22:24:43+00:00\",\"dateModified\":\"2024-06-03T19:19:50+00:00\",\"description\":\"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage\",\"url\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg\",\"contentUrl\":\"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg\",\"width\":557,\"height\":291,\"caption\":\"How to Build a CockroachDB Sandbox on Windows\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtual-dba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Build a CockroachDB Sandbox on Windows\"}]},{\"@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\/df5834301b0edec142d0a2da82460c46\",\"name\":\"Marc Petros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9644ca5003abd7bc6f6f177a2e4ec7d295dad5c97e8cdddb9190d2c58f2c42cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9644ca5003abd7bc6f6f177a2e4ec7d295dad5c97e8cdddb9190d2c58f2c42cd?s=96&d=mm&r=g\",\"caption\":\"Marc Petros\"},\"url\":\"https:\/\/virtual-dba.com\/author\/marc-petros\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Build a CockroachDB Sandbox on Windows - Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","description":"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.","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-build-a-cockroachdb-sandbox-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"How to Build a CockroachDB Sandbox on Windows","og_description":"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.","og_url":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/","og_site_name":"Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","article_published_time":"2024-02-22T22:24:43+00:00","article_modified_time":"2024-06-03T19:19:50+00:00","og_image":[{"width":557,"height":291,"url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg","type":"image\/jpeg"}],"author":"Marc Petros","twitter_card":"summary_large_image","twitter_creator":"@virtual_dba","twitter_site":"@virtual_dba","twitter_misc":{"Written by":"Marc Petros","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#article","isPartOf":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/"},"author":{"name":"Marc Petros","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/df5834301b0edec142d0a2da82460c46"},"headline":"How to Build a CockroachDB Sandbox on Windows","datePublished":"2024-02-22T22:24:43+00:00","dateModified":"2024-06-03T19:19:50+00:00","mainEntityOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/"},"wordCount":315,"commentCount":0,"publisher":{"@id":"https:\/\/virtual-dba.com\/#organization"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg","articleSection":["Blog","Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/","url":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/","name":"How to Build a CockroachDB Sandbox on Windows - Virtual-DBA Remote DBA Services &amp; Support - Certified Database Experts","isPartOf":{"@id":"https:\/\/virtual-dba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg","datePublished":"2024-02-22T22:24:43+00:00","dateModified":"2024-06-03T19:19:50+00:00","description":"Learn how to set up a CockroachDB sandbox on Windows. Perfect for testing applications and exploring the database platform.","breadcrumb":{"@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#primaryimage","url":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg","contentUrl":"https:\/\/virtual-dba.com\/wp-content\/uploads\/How-to-Build-a-CockroachDB-Sandbox-on-Windows-vdba.jpg","width":557,"height":291,"caption":"How to Build a CockroachDB Sandbox on Windows"},{"@type":"BreadcrumbList","@id":"https:\/\/virtual-dba.com\/blog\/how-to-build-a-cockroachdb-sandbox-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtual-dba.com\/"},{"@type":"ListItem","position":2,"name":"How to Build a CockroachDB Sandbox on Windows"}]},{"@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\/df5834301b0edec142d0a2da82460c46","name":"Marc Petros","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtual-dba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9644ca5003abd7bc6f6f177a2e4ec7d295dad5c97e8cdddb9190d2c58f2c42cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9644ca5003abd7bc6f6f177a2e4ec7d295dad5c97e8cdddb9190d2c58f2c42cd?s=96&d=mm&r=g","caption":"Marc Petros"},"url":"https:\/\/virtual-dba.com\/author\/marc-petros\/"}]}},"_links":{"self":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/242162","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\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/comments?post=242162"}],"version-history":[{"count":0,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/posts\/242162\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media\/242165"}],"wp:attachment":[{"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/media?parent=242162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/categories?post=242162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtual-dba.com\/wp-json\/wp\/v2\/tags?post=242162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}