{"id":4482,"date":"2018-12-05T05:29:08","date_gmt":"2018-12-05T05:29:08","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=4482"},"modified":"2018-12-11T04:34:34","modified_gmt":"2018-12-11T04:34:34","slug":"how-to-install-jetbrains-datagrip-on-ubuntu-linux-hint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/05\/how-to-install-jetbrains-datagrip-on-ubuntu-linux-hint\/","title":{"rendered":"How to Install Jetbrains DataGrip on Ubuntu \u2013 Linux Hint"},"content":{"rendered":"<p>DataGrip is a SQL database IDE from JetBrains. It has auto completion support for SQL language. It even analyzes your existing databases and helps you write queries faster. DataGrip can be used to manage your SQL databases graphically as well. You can also export your database to various formats like JSON, CSV, XML etc. It is very user friendly and easy to use.<\/p>\n<p>In this article, I will show you how to install DataGrip on Ubuntu. The procedure shown here will work on Ubuntu 16.04 LTS and later. I will use Ubuntu 18.04 LTS in this article for demonstration. So, let\u2019s get started.<\/p>\n<p>On Ubuntu 16.04 LTS and later, the latest version of DataGrip is available as a snap package in the official snap repository. So, you can easily install DataGrip on Ubuntu 16.04 LTS and later.<\/p>\n<p>To install DataGrip snap package on Ubuntu 16.04 LTS and later, run the following command:<\/p>\n<p>$ sudo snap install datagrip &#8211;classic<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/1-1.png\" alt=\"\" width=\"1079\" height=\"91\" \/><\/p>\n<p>As you can see, DataGrip is being installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/2-1.png\" alt=\"\" width=\"1079\" height=\"126\" \/><\/p>\n<p>DataGrip is installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/3-1.png\" alt=\"\" width=\"1071\" height=\"144\" \/><\/p>\n<p>Now, you can start DataGrip from the Application Menu of Ubuntu. Search for datagrip in the Application Menu and you should see the DataGrip icon. Just click on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/4-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>As you\u2019re running DataGrip for the first time, you will have to do some initial configuration. From this window, select Do not import settings and then click on OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/5-1.png\" alt=\"\" width=\"702\" height=\"265\" \/><\/p>\n<p>Now, you will see the activation window. DataGrip is not free. To use DataGrip, you will have to buy it from JetBrains. Once you buy it, you will be able to use this window to activate DataGrip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/6-1.png\" alt=\"\" width=\"791\" height=\"436\" \/><\/p>\n<p>If you want to try out DataGrip before you buy it, select Evaluate for free and click on Evaluate.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/7-1.png\" alt=\"\" width=\"814\" height=\"432\" \/><\/p>\n<p>DataGrip is being started.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/8-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Now, you will have to customize DataGrip. From here, select an UI theme. You can either use Darcula dark theme from JetBrains or the Light theme depending on your preferences. Just, select the one you like.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/9-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>If you don\u2019t want to customize DataGrip now, instead leave the defaults, then click on Skip Remaining and Set Defaults.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/10-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Otherwise, click on Next: Database Options.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/11-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Now, select the default SQL dialect. For example, if you mostly use MySQL, then, you should select MySQL. You may also set the default script directory for your chosen database dialect. It\u2019s optional.<\/p>\n<p>Once you\u2019re done, click on Start using DataGrip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/12-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>DataGrip should start. You may click on Close to close to Tip of the Day.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/13-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>This is the main window of DataGrip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/14-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<h2>Connecting to a Database:<\/h2>\n<p>In this section, I will show you how to connect to a SQL database with DataGrip.<\/p>\n<p>First, from the Database tab, click on the + icon as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/15-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, from Data Source, select the database you want to connect to. I will pick MariaDB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/16-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>As you are running DataGrip for this database (MariaDB in my case) for the first time, you will have to download the database driver. You can click on Download as marked in the screenshot below to download the database driver.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/17-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you can see, the required database driver files are being downloaded.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/18-1.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Once the driver is downloaded, fill in all the details and click on Test Connection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/19.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>If everything is alright, you should see a green Successful message as shown in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/20.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Finally, click on OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/21.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>You should be connected to your desired database.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/22.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<h3>Creating Tables with DataGrip:<\/h3>\n<p>You can create tables in your database graphically using DataGrip. First, right click your database from the list and go to New &gt; Table as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/23.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, type in your table name. To add new columns to the table, click on + icon as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/24.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Now, type in the column name, type, default value if it does have in your design, and check the column attributes such as Auto Increment, Not null, Unique, Primary key depending on your need.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/25.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>If you want to create another column, just click on the + icon again. As you can see, I created id, firstName, lastName, address, age, phone, and country columns. You can also use the \u2013 icon to remove a column, Up and Down arrow icons to change the position of the column. Once you\u2019re satisfied with your table, click on Execute.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/26.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>Your table should be created.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/27.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>You can double click on the table to open it in a graphical editor. From here, you can add, modify, delete table rows very easily. This is the topic of the next section of this article.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/28.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<h3>Working with Tables in DataGrip:<\/h3>\n<p>To add a new row, from the table editor, just click on the + icon as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/29.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>A new blank row should show up.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/30.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Now, click on the columns and type in the values that you want for the new row. Once you\u2019re done, click on DB upload icon as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/31.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>As you can see, the changes are saved permanently in the database.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/32.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>I added another row of dummy data just to demonstrate how delete and modify works.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/33.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>To delete a row, select any column of the row you want to delete and click on the \u2013 icon marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/34.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>As you can see, the row is not in gray color. To save the changes, click on the DB upload icon as marked in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/35.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>As you can see, the table is gone.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/36.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<p>To edit any row, just double click on the column of the row that you want to edit and type in the new value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/37.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>Finally, click somewhere else and then click on DB upload icon for the changes to be saved.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/38.png\" alt=\"\" width=\"1360\" height=\"768\" \/><\/p>\n<h4>Running SQL Statements in DataGrip:<\/h4>\n<p>To run SQL statements, just type in the SQL statement, move the cursor to the end of the SQL statement and press &lt;Ctrl&gt; + &lt;Enter&gt;. It will execute and the result will be displayed as you can see in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/12\/39-1.png\" alt=\"\" width=\"1140\" height=\"644\" \/><\/p>\n<p>So, that\u2019s how you install and use DataGrip on Ubuntu. Thanks for reading this article.<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/install_jetbrains_datagrip_ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DataGrip is a SQL database IDE from JetBrains. It has auto completion support for SQL language. It even analyzes your existing databases and helps you write queries faster. DataGrip can be used to manage your SQL databases graphically as well. You can also export your database to various formats like JSON, CSV, XML etc. It &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/05\/how-to-install-jetbrains-datagrip-on-ubuntu-linux-hint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Jetbrains DataGrip on Ubuntu \u2013 Linux Hint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4482","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=4482"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4482\/revisions"}],"predecessor-version":[{"id":5380,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4482\/revisions\/5380"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=4482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=4482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=4482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}