{"id":1769,"date":"2018-04-04T19:47:17","date_gmt":"2018-04-05T00:47:17","guid":{"rendered":"http:\/\/bluegalaxy.info\/codewalk\/?p=1769"},"modified":"2020-01-08T09:34:07","modified_gmt":"2020-01-08T14:34:07","slug":"how-to-run-mysql-queries-in-atom-using-a-package-called-data-atom","status":"publish","type":"post","link":"https:\/\/bluegalaxy.info\/codewalk\/2018\/04\/04\/how-to-run-mysql-queries-in-atom-using-a-package-called-data-atom\/","title":{"rendered":"Atom: How to run MySQL queries in Atom using a package called Data Atom"},"content":{"rendered":"<p>In this article, I will demonstrate how to run queries from within Atom using a package called &#8216;Data Atom&#8217;.<\/p>\n<h4><strong>Step 1: Install Data Atom package<\/strong><\/h4>\n<p>Warning: Before attempting to install any packages in Atom, make sure you disable any real-time virus or malware protection programs you have running, such as Malwarebytes.<\/p>\n<p>In the Atom Settings menu, click on + Install. Then type data atom into the search field.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1785\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-packages-atom.png\" alt=\"\" width=\"731\" height=\"130\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-packages-atom.png 753w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-packages-atom-300x53.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-packages-atom-676x120.png 676w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>You should then see a blue Install button. Click this to install the package.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1786\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom.png\" alt=\"\" width=\"731\" height=\"144\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom.png 739w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom-300x59.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom-676x134.png 676w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>Once the package is installed, the box will look like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1787\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom2.png\" alt=\"\" width=\"731\" height=\"144\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom2.png 731w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom2-300x59.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/install-data-atom2-676x133.png 676w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>Then you should also see Data Atom in the list of Packages. To open it, select Data Atom &#8211;&gt; Execute<\/p>\n<h4><strong>Step 2: Set up database connection<\/strong><\/h4>\n<p>You will then see a New Connection dialog appear where you can set up your database connection:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1793\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-new-connection.png\" alt=\"\" width=\"612\" height=\"382\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-new-connection.png 612w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-new-connection-300x187.png 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/p>\n<h4><strong>Step 3: Run SQL queries<\/strong><\/h4>\n<p>Once your database connection is set up, you are free to run queries!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1795\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-execute-view.png\" alt=\"\" width=\"926\" height=\"370\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-execute-view.png 926w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-execute-view-300x120.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-execute-view-768x307.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/data-atom-execute-view-676x270.png 676w\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1798\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-show-tables.png\" alt=\"\" width=\"190\" height=\"338\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-show-tables.png 190w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-show-tables-169x300.png 169w\" sizes=\"auto, (max-width: 190px) 100vw, 190px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1796\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-titles.png\" alt=\"\" width=\"540\" height=\"383\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-titles.png 540w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/employee-titles-300x213.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/p>\n<p>Another nice feature of Data Atom is the ability to edit your database connections right in Atom. From the Atom menu, choose Packages &#8211;&gt; Data Atom &#8212; &gt; Edit connections<\/p>\n<p>Then you will see a .cson file show up in Atom where you can edit the details of your connections!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1800\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/edit-connections.png\" alt=\"\" width=\"300\" height=\"304\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/edit-connections.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/04\/edit-connections-296x300.png 296w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>For more information about Data Atom see:<br \/>\n<a href=\"https:\/\/atom.io\/packages\/data-atom\">https:\/\/atom.io\/packages\/data-atom<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I will demonstrate how to run queries from within Atom using a package called &#8216;Data Atom&#8217;. Step 1: Install Data Atom package Warning: Before attempting to install any packages in Atom, make sure you disable any real-time virus or malware protection programs you have running, such as Malwarebytes. In the Atom Settings &hellip; <a href=\"https:\/\/bluegalaxy.info\/codewalk\/2018\/04\/04\/how-to-run-mysql-queries-in-atom-using-a-package-called-data-atom\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Atom: How to run MySQL queries in Atom using a package called Data Atom<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[121,108,43],"class_list":["post-1769","post","type-post","status-publish","format-standard","hentry","category-technologies-and-tools","tag-atom","tag-mysql","tag-sql"],"_links":{"self":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/comments?post=1769"}],"version-history":[{"count":10,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1769\/revisions"}],"predecessor-version":[{"id":3056,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/1769\/revisions\/3056"}],"wp:attachment":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/media?parent=1769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/categories?post=1769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/tags?post=1769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}