Connect With PostgreSQL using VS CODE for PRODUCTION
Key Takeaways
Connects to PostgreSQL database using VS Code for production
Full Transcript
in the previous session we learned how to connect to postgresql using the command prompt or terminal today we will do the same thing but using vs code instead so without wasting any time let's get started to connect to postgresql you need to have vs code installed properly on your machine this applies to any operating system including Windows Linux or Mac I am assuming that you already have vs code installed if so please open it now because we will need to install some plugins here I have my vs code opened now that you have vs code open please go to the marketplace and search for the extension called SQL tools make sure to write SQL tools as a single word without any spaces here it is install it once you find it I will leave the link of this extension in the description after installing the extension you should be able to see it in the extension bar on the left hand side of your screen it will have an icon that looks like a database we are not done yet now we need to install drivers for postgresqls to do this go back to the marketplace and search for SQL tools postgresql both the SQL tools extension and the drivers are from the publisher Mathis Tech Zera however I will also leave the link to the driver in the description for your convenience anyways here is the driver the full name of the driver is SQL tools postgresql cockroach driver install it done once the driver is installed go back to SQL tools and click on add new connection then select postgresql this will open the connection assistant form which we will need to fill out we will be using the information from the installation string that we used in the installation video to do this okay let's start connection name you can name your connection whatever you want I will name my connection as postgres connection group leave it empty Connect using leave it set on server and Port server address since my postgres sequence is installed on the same machine thus I will leave it set on localhost in case you have installed your postgres sequence on a remote server then put the IP address of that server here Port if you remember while installing postgresql we exposed port number 5432 for the installation 5432 also happens to be the default port number for the postgresql we will use this same port number 5432 database here we have to put the name of the database to which we want to connect after installation of postgres equals we will be provided with a default database whose name is postgres this name is case sensitive so make sure to type it in all small letters username similar to database name with the installation we are provided with a default user again whose name is postgres all in small letters use password for the time being I will set this value to save as plain text in settings this is not recommended usually we set it to arcs to connect on doing so you will be asked to put the password every time you will connect with the database password here put the password of the database this is the same password you assigned while installation in my case it was postgres that's all we have to do leave the remaining Fields set on their default values now press test connection oops I got an error this is because my Docker container for postgres isn't running let me run the docker container here is my Docker desktop app and here is my postgres container let's run it done now let's test the connection once again successfully connected next press the save connection and then from the connection panel select the connection that you just created and right click on it and select connect in this worksheet you can write your SQL queries and run them let me show you how let's write a query to check the current username with which we are connected to run this statement press the run on active connection button and here is the result which is postgres that is how we connect with the postgres SQL server using vs code that's it for this tutorial hope you enjoyed watching it if so then give it a thumbs up also subscribe to the channel and press the Bell icon thanks for watching this is Manish from rebellionrider.com
Original Description
This video demonstrates how to connect with a PostgreSQL database using Visual Studio Code while adhering to production standards. By following our step-by-step guide, you'll learn how to install and configure the necessary extensions, create a new database, and connect to it using your credentials. Whether you're a developer, database administrator, or just curious about how to connect to a database using VS Code, this video has everything you need to get started.
------------------------------------------------------------------------
►►►LINKS◄◄◄
Blog: http://www.rebellionrider.com/connect-postgresql-with-vs-code/
Previous Tutorial
►
Extension- SQLTools Matheus Teixeira
https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools
SQLTools PostgreSQL/Cockroach Driver.
https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools-driver-pg
-------------------------------------------------------------------------
►►►Social Media – Where I sort of Live
https://www.instagram.com/RebellionRider/
https://www.facebook.com/TheRebellionRider/
https://twitter.com/RebellionRider
https://www.linkedin.com/in/mannbhardwaj/
-------------------------------------------------------------------------
►►►Books I refer to
PL/SQL https://amzn.to/2QE1jX0
Performance Tuning https://amzn.to/2sgiAw4
1z0-071 Exam https://amzn.to/2sgfeJw
Python Programming https://amzn.to/305UEbh
-------------------------------------------------------------------------
►►►Camera Gears
► Video Gears That We Use For Creating Our YouTube Video
https://www.amazon.in/shop/manishsharma?listId=DU9UM0XL97KM&ref=idea_share_inf
► Work From Home Essential Tech That We Use Daily
https://www.amazon.in/shop/manishsharma?listId=XAZ18JLLSNB5&ref=idea_share_inf
AFFILIATE DISCLOSURE:
Some of the links used in the description will direct you to Amazon.in. As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.
#RebellionRider
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Manish Sharma · Manish Sharma · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Oracle Database tutorials 1: How to install Oracle Database 11g on windows 7
Manish Sharma
Oracle Database tutorials 2:How To install SQL Developer on windows 7
Manish Sharma
Oracle Database tutorials 3:How to enable Line numbers in SQL Developer.
Manish Sharma
Oracle Database tutorials 4: database connectivity using SQL developer and command prompt
Manish Sharma
Oracle Database tutorials 5: how to Fetch Data using SELECT - SQL statement by Manish Sharma
Manish Sharma
Oracle Database11g tutorials 6 | | How to use Concatenation operator, character String
Manish Sharma
Oracle Database11g tutorials 7 | |SQL DISTINCT keyword || SQL tutorials
Manish Sharma
Canon EOS 600D 2 lens kit/Canon rebell EOS T3i 2 lens kit Unboxing
Manish Sharma
First look: ORACLE CERTIFIED ASSOCIATE (OCA) CERTIFICATE - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Oracle Database11g tutorials 8 || SQL DISTINCT with multiple columns |SQL Distinct with Two columns
Manish Sharma
Oracle Database11g tutorials 9 || What is archive log mode and how to enable archive log mode
Manish Sharma
Oracle Database11g tutorials 10 || SQL Single Row Function (SQL Functions )
Manish Sharma
Oracle Database11g tutorials 11: SQL case manipulation function in Oracle Database
Manish Sharma
how to add channel trailer and section on your youtube channel 2014
Manish Sharma
Oracle Database11g tutorials 12 || SQL Concat Function - SQL character manipulation function
Manish Sharma
Oracle Database11g tutorials 13 || SQL substr function / SQL substring function
Manish Sharma
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
Manish Sharma
SQL tutorials 15 || How To CREATE TABLE using enterprise manager 11g
Manish Sharma
Oracle Database11g tutorials 16: How to uninstall oracle 11g from windows 7 64 bit
Manish Sharma
ORACLE CERTIFIED PROFESSIONAL(OCP) CERTIFICATE First look - ORACLE DATABASE ADMINISTRATOR
Manish Sharma
Plantronics audio 655 USB headset with Mic Unboxing and Review and Plantronics audio 655 Mic test
Manish Sharma
SQL tutorials 17: SQL Primary Key constraint, Drop primary Key
Manish Sharma
SQL tutorials 18: SQL Foreign Key Constraint By Manish Sharma
Manish Sharma
SQL tutorial 19: ON DELETE SET NULL clause of Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorials 20: On Delete Cascade Foreign Key By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 21: How To Rename Table in SQL using ALTER TABLE statement By Manish Sharma
Manish Sharma
SQL tutorial 22: How to Add / Delete column from an existing table using alter table
Manish Sharma
SQL tutorial 23: Rename and Modify Column Using Alter Table By Manish Sharma (RebellionRider)
Manish Sharma
SQL tutorial 24 :SQLJoins- Natural Join With ON and USING clause By Manish/Rebellionrider
Manish Sharma
Oracle Database11g tutorials 25: How to install Oracle Database 11g Express Edition R2 on Windows 7
Manish Sharma
SQL tutorial 26: Introduction to SQL Joins in Oracle Database
Manish Sharma
Vidcon 2014 YouTube Fan Funding: How to enable fan funding on YouTube Channel
Manish Sharma
SQL tutorial 27: Right Outer Join in SQL by Manish Sharma for RebellionRider
Manish Sharma
SQL tutorial 28: Left Outer Join By Manish Sharma / RebellionRider
Manish Sharma
SQL tutorial 29: Full Outer Join with example By Manish Sharma/ RebellionRider
Manish Sharma
SQL tutorial 30: Inner Join In SQL by Manish Sharma/RebellionRider
Manish Sharma
SQL tutorial 31 : SQL Cross Join In Oracle Database By Manish Sharma from RebellionRider
Manish Sharma
SQL tutorial 32: How To Insert Data into a Table Using SQL Developer
Manish Sharma
SQL tutorial 33:How To Insert Data into a Table Using SQL INSERT INTO dml statement
Manish Sharma
SQL tutorial 34: How to copy /Insert data into a table from another table using INSERT INTO SELECT
Manish Sharma
SQL tutorial 35: DELETE and TRUNCATE how to delete data from a table
Manish Sharma
SQL tutorial 36: how to create database using database configuration assistant DBCA
Manish Sharma
SQL tutorial 37: How to create NEW USER account using Create User statement in Oracle database
Manish Sharma
SQL tutorial 38: How to create user using SQL Developer in Oracle database
Manish Sharma
SQL tutorial 39: How to create user in oracle using Enterprise Manager
Manish Sharma
SQL tutorial 40: DBA Trick, How to drop a user when it is connected to the database
Manish Sharma
Motorola Moto G 2nd Generation / G2 Unboxing and Review
Manish Sharma
SQL tutorial 41: How to UNLOCK USER in oracle Database
Manish Sharma
SQL tutorial 42: How to Unlock user using SQL Developer By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 43: How to create an EXTERNAL USER in oracle database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 44: How to import data from Microsoft Excel to Oracle Database using SQL Developer
Manish Sharma
SQL tutorial 45: Introduction to user Privileges in Oracle Database By Manish Sharma RebellionRider
Manish Sharma
SQL tutorial 46: What are System Privileges & How To Grant them using Data Control Language
Manish Sharma
SQL tutorial 47: How to Grant Object Privileges With Grant Option in Oracle Database
Manish Sharma
SQL tutorial 48: How to create Roles in Oracle Database
Manish Sharma
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
Manish Sharma
SQL tutorial 50: CASE - Searched Case Expression In Oracle (2/2)
Manish Sharma
SQL tutorial 51: DECODE function in Oracle Database By Manish Sharma (RebellionRider)
Manish Sharma
Oracle Database Tutorial 52 : Data Pump expdp - How to Export full database using expdp
Manish Sharma
Oracle Database Tutorial 53 : Data pump expdp - How to Export tablespace in Oracle Database
Manish Sharma
Related Reads
📰
📰
📰
📰
What Hiring Managers Actually Think When They See Your Data Science GitHub in 2026
Medium · Machine Learning
My Favourite High-Probability Intraday Setup
Medium · Data Science
Normal Distribution — A Complete Guide for Beginners
Medium · Python
The Importance of Data Profiling in the AI Era
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI