All language subtitles for 11. Importing Data On WINDOWS

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,390 --> 00:00:07,440 All right, so setting up your environment now, we're getting ready to import our databases into our 2 00:00:07,440 --> 00:00:12,350 Posterous server, and as we just saw, we installed the postcrisis server on Windows. 3 00:00:12,750 --> 00:00:16,370 And so now we have to import all of these databases. 4 00:00:16,980 --> 00:00:18,150 And so how are we going to do that? 5 00:00:18,300 --> 00:00:20,730 Well, we're going to be loading a backup. 6 00:00:21,790 --> 00:00:27,290 All right, so let's get into that, it's simpler than it sounds, so if we go over here into our Vallentine 7 00:00:27,310 --> 00:00:33,250 DB, what we can see here is that we have a server already connected. 8 00:00:34,320 --> 00:00:37,200 But let's just say this wasn't here, let's delete this. 9 00:00:37,470 --> 00:00:42,600 Well, what we would do is we would go to add a bookmark and if we go to PostgreSQL, what we can see 10 00:00:42,600 --> 00:00:45,660 here is, oh, it's defaulting itself to localhost. 11 00:00:45,960 --> 00:00:50,490 It's defaulting the data to postcrisis and the user to PostgreSQL, and it's defaulting the port to 12 00:00:50,490 --> 00:00:51,610 the port that we set it to. 13 00:00:51,630 --> 00:00:55,080 So all we need to fill in is the password, which was route and free press. 14 00:00:55,110 --> 00:01:00,570 OK, well, we can see here is we're connecting to our database that we just installed, but there are 15 00:01:00,570 --> 00:01:01,850 no databases in here. 16 00:01:02,370 --> 00:01:05,280 So let's start by loading one back up. 17 00:01:05,280 --> 00:01:07,290 Let's create a database called Employees. 18 00:01:08,800 --> 00:01:13,900 And now we have a database employees, but it has no tables, it has no data, and so if you remember 19 00:01:13,900 --> 00:01:19,510 when we did our installation, we had all of these files in the PostgreSQL bin folder and there was 20 00:01:19,510 --> 00:01:21,680 this one file called up. 21 00:01:22,250 --> 00:01:23,800 Well, let's take this path. 22 00:01:24,610 --> 00:01:26,170 And let's open our command line. 23 00:01:27,430 --> 00:01:33,460 So if we open our command line, this command line is basically our way to talk to Windows through text, 24 00:01:33,460 --> 00:01:34,500 through commands. 25 00:01:34,960 --> 00:01:37,870 Now oftentimes you'll remember this from The Matrix. 26 00:01:37,870 --> 00:01:41,430 It's a black screen and a bunch of text and you see everything happening. 27 00:01:41,650 --> 00:01:43,920 Well, this is kind of the same thing. 28 00:01:44,170 --> 00:01:49,510 And so what we want to do is we want to do the command code, which is change directory, and we want 29 00:01:49,510 --> 00:01:51,940 to go to the directory that we just copied. 30 00:01:52,090 --> 00:01:57,520 And if we do that now, we can run well and it's going to ask the password for Mo. 31 00:01:57,940 --> 00:02:00,560 But Mo wasn't a user of the database, was he? 32 00:02:00,880 --> 00:02:03,250 Well, let's fill in root and see what happens. 33 00:02:04,150 --> 00:02:09,170 Oh, we get an error, cannot connect the server password authentication field for user mode. 34 00:02:09,430 --> 00:02:10,840 But what wasn't our user? 35 00:02:11,120 --> 00:02:12,580 So how do we add a user? 36 00:02:12,610 --> 00:02:16,980 Well, if we do Dasch, you and we do PostgreSQL, because that was our user. 37 00:02:17,620 --> 00:02:19,750 Now we can say route. 38 00:02:20,680 --> 00:02:25,420 Oh, something's changed, we entered the PostgreSQL server. 39 00:02:27,260 --> 00:02:33,530 Now, in here, you can do things like look at the databases and if you fill in hell, you can see that 40 00:02:33,860 --> 00:02:35,660 we have the employees database. 41 00:02:36,590 --> 00:02:42,590 So we wanted to restore a backup, but we don't have to be in here to restore a backup because our backup 42 00:02:42,590 --> 00:02:43,840 files are somewhere else. 43 00:02:43,850 --> 00:02:46,940 So let's argue and that'll make us exit. 44 00:02:48,870 --> 00:02:55,050 Now, there are a bunch of database scripts that we've added for you to be able to use France world 45 00:02:55,050 --> 00:03:02,460 store employee, and so in order to run the employee script, we want to go to the employee folder. 46 00:03:03,300 --> 00:03:04,100 So let's go there. 47 00:03:04,110 --> 00:03:05,430 Let's change directory again. 48 00:03:06,270 --> 00:03:12,270 OK, so now that we're in this directory, we can't run the actual command the way we did because it's 49 00:03:12,270 --> 00:03:12,810 not known. 50 00:03:13,500 --> 00:03:14,670 So how are we going to do that? 51 00:03:15,360 --> 00:03:15,810 Well. 52 00:03:17,530 --> 00:03:24,820 If we go back to our computer and we go back to the C Drive program files and we go back to PostgreSQL 53 00:03:25,240 --> 00:03:25,870 12. 54 00:03:26,930 --> 00:03:36,170 Ben, and we go down to the bottom, what we can see over here is that you can drag Pascual into here 55 00:03:36,920 --> 00:03:39,090 and it will reference the path. 56 00:03:41,360 --> 00:03:45,850 And here we go, it's working again, it's asking the password for MO, which we don't want. 57 00:03:45,860 --> 00:03:47,870 We wanted it for Posterous. 58 00:03:49,600 --> 00:03:56,320 So we're going to run it for PostgreSQL and we are going to target the database employees. 59 00:03:57,400 --> 00:04:00,970 And what we want to do is we want to run the file. 60 00:04:02,260 --> 00:04:06,670 Employees, so if we do employees. 61 00:04:08,530 --> 00:04:13,570 Thought Eskew will, what you'll see happen here is a backup will be restored to the database. 62 00:04:17,430 --> 00:04:19,770 Excuse me, it's actually Vashti. 63 00:04:20,650 --> 00:04:27,850 And then it will ask for the password route, so just note that these are case sensitive, uppercase 64 00:04:28,120 --> 00:04:29,910 and lowercase d mean very different things. 65 00:04:29,920 --> 00:04:31,120 This is targeting a database. 66 00:04:31,390 --> 00:04:32,320 So we filled in root. 67 00:04:32,320 --> 00:04:33,550 And if we execute now. 68 00:04:34,690 --> 00:04:39,520 What you'll see is it's creating tables and it's inserting data and we just got to let it insert data 69 00:04:39,520 --> 00:04:40,270 for a while. 70 00:04:41,730 --> 00:04:48,420 And that will allow us to have a database that has all of the records that it needs to run queries against. 71 00:04:49,610 --> 00:04:52,640 And we'll be doing this for another three database's. 72 00:04:56,440 --> 00:05:02,590 Group starts hanging, which I can just press control C to kick start it, to continue it. 73 00:05:03,630 --> 00:05:12,630 As this may happen and so once it's done running, what we can see here is that we have data available 74 00:05:12,870 --> 00:05:13,970 in our public now. 75 00:05:13,980 --> 00:05:17,480 We have departments, we have department managers, we have employees. 76 00:05:17,490 --> 00:05:18,600 So let's go into employees. 77 00:05:18,600 --> 00:05:21,510 And what we can see here is that we have a ton of employees. 78 00:05:22,610 --> 00:05:25,910 And so now we just restored a backup for our employee database. 79 00:05:26,300 --> 00:05:28,370 Now let's do the same for the world database. 80 00:05:29,340 --> 00:05:31,080 So let's create a database called World. 81 00:05:32,040 --> 00:05:34,800 And as you can see here, no data. 82 00:05:36,860 --> 00:05:44,060 And so over here in our folder, if we go back one, we can see that we have a world file, so let's 83 00:05:44,060 --> 00:05:50,780 go and let's do data, which will go one directory up to scripts and let's run the same command we did. 84 00:05:51,050 --> 00:05:52,540 But let's target world now. 85 00:05:53,270 --> 00:05:57,230 So let's target the database world and let's say world thought skua. 86 00:05:58,960 --> 00:06:00,040 And let's fill in route. 87 00:06:00,930 --> 00:06:06,420 And there we go, database imported, so the employees database is one of the biggest ones, and that's 88 00:06:06,420 --> 00:06:09,210 why it can hang because it's inserting so many records. 89 00:06:09,220 --> 00:06:14,700 So if it hangs, just press control and will kick started again, otherwise cancelled the script, rerun 90 00:06:14,700 --> 00:06:17,820 it and it should continue on until it finishes. 91 00:06:17,820 --> 00:06:20,180 It will just say that data has already been inserted. 92 00:06:20,910 --> 00:06:27,030 And so with the world database now we can see that we have tables, city, country, country, language. 93 00:06:27,030 --> 00:06:30,360 If you don't see them immediately, just press this little refresh icon. 94 00:06:31,760 --> 00:06:34,460 Let's create another database and let's call it France. 95 00:06:37,010 --> 00:06:42,440 And here we go, here's France again, no data, no tables, and if we go inside our folder here, what 96 00:06:42,440 --> 00:06:47,230 we can see is that we have a France file, so let's run the same exact script. 97 00:06:48,730 --> 00:06:55,750 But let's target France and let's say France, Fortescue, and then let's fill in route again and there 98 00:06:55,750 --> 00:06:57,690 we go, everything's inserted. 99 00:06:58,390 --> 00:07:01,680 So if we go inside France now, oh, nothing's there yet. 100 00:07:01,960 --> 00:07:03,310 Press the refresh icon. 101 00:07:03,640 --> 00:07:05,680 We have departments, regions and towns. 102 00:07:06,430 --> 00:07:09,520 And so now for our final database, let's add a database called Store. 103 00:07:11,280 --> 00:07:18,900 And again, nothing in here, but if you go look at our files, we have a store file, so let's go here 104 00:07:19,230 --> 00:07:20,400 and let's run this in command. 105 00:07:20,400 --> 00:07:23,550 And by pressing the up key, you can do the exact same thing. 106 00:07:24,330 --> 00:07:27,060 Store and let's target store a school. 107 00:07:28,410 --> 00:07:31,030 It's press root and there we go. 108 00:07:31,260 --> 00:07:32,410 Everything's inserted. 109 00:07:33,150 --> 00:07:38,160 So if we go into a store, you can see that these queries ran much, much faster than employees. 110 00:07:38,160 --> 00:07:41,160 Employees takes a little while because it has so much data. 111 00:07:41,160 --> 00:07:44,820 You can kick started if it starts hanging in a certain point by just pressing control. 112 00:07:44,830 --> 00:07:47,340 See if you press control, see twice you may exit the script. 113 00:07:47,340 --> 00:07:49,290 If you press it once, it may kick start it. 114 00:07:49,770 --> 00:07:51,220 There's just some lag there. 115 00:07:51,510 --> 00:07:54,420 So if we go inside a store, you'll see here we don't see any of the tables. 116 00:07:54,610 --> 00:07:58,650 If we refresh now, we have customers, inventories, products. 117 00:07:58,950 --> 00:08:00,330 So let's go inside customers. 118 00:08:00,540 --> 00:08:02,730 And here we can see we have a bunch of customers. 119 00:08:03,850 --> 00:08:10,990 What a bunch of information, so awesome, we set up our environment and the exact same thing can be 120 00:08:10,990 --> 00:08:13,020 done on the 32 bit with PostgreSQL. 121 00:08:13,540 --> 00:08:14,640 There is no difference. 122 00:08:14,680 --> 00:08:16,150 It will work just the same. 123 00:08:16,150 --> 00:08:17,470 It will work just fine. 124 00:08:17,710 --> 00:08:24,430 And so now that you're all set up and you have all of this ready to go, you are ready to kick start 125 00:08:24,430 --> 00:08:28,030 your school journey with more in-depth data. 12113

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.