I will call you back again for another lecture on PostgreSQL.
And in this video lecture, I'll go ahead and teach you how to connect to your actual database.
All right.
So we created this database called strains and the previous lecture.
And the let's go ahead and learn how to connect to our database.
All right.
Now we have been able to create a database.
Now we want to connect to the database.
And if want to connect to your database go ahead and use Backward slash.
And now you go ahead and write connect.
And then you give the name of the database.
And here it is student.
And then I'll go ahead and the C students and hit enter.
And it says you are now connected to database student as user PostgreSQL or Postgres.
So you are now connected to database student as user Postgres.
And then I can actually make rates on it as it is.
I am working on this.
If I want to do that, I'll go ahead and put backward slash and another database I have right in here
is moi.
I can go over and say connect and moi.
And it says you are now connected to database moi as user Postgres.
And now I can actually move over to Postgres and connect to that again by entering connect.
Posts.
Chris I hope that is the name that is Postgres.
So I'm going to add an S right in here and hit enter.
I am not connected to database postgres s user Postgres.
Now this is a one way of connecting to your database.
Another way is by using backward slash.
And I'll go ahead and put just see a new space and I can go ahead and connect to a database course to
date.
And if I hit enter you can see you are not connected to the database state as user.
Postgres.
So you can see that it can actually connect to any of your database is in either connect or using C.
So if I go ahead and put C again and say connect to MLA and hit enter, you are now connected to Moi
as user Postgres and the same thing is applicable to Postgres.
And go ahead and hit enter and not connect it to database Postgres as Postgres.
So in that way you can actually connect to a database using either connect or using either C.
So any of this works out fine right.
So go ahead and connect to database.
So can we go to kickstart and then move deep into this PostgreSQL and then learn more on this.
So if you have any question on this use the question and answer section.
Or you go ahead and move over to the next video lecture.