Thecolumnsweregoingtobetalkingabouttherecordsthat a typesbasicallygivingyouaneagleeyeviewofwhenweweretalkingabout a databasestructure.
WhatdoesthisactuallylooklikesothatyoucanthengoandtrytofigureouteachindividualcomponentandbuildoutwhatyouneedSothisclasstodayisbasicallyjustgoingtobegivingyouthateagleeyeviewofwhatmysequelstructurelookslike s O thatyouhave a betterideaofwhat's goingonwhenwestartgoingintothemoreindepthclasses.
Basically, yougotothatWebsite, youhave a Webpageinfrontofyouyou'reabletoputinfromininformation, you'reabletopulloutreports.
Sobasically, that's what's called a Webfront, andoryoumighthave a mobilefrontandright, SoifyouhaveyourlittleiPhoneoryouhaveyoursmartphonesomebodycreates a nativeapplicationforthatphone.
Andagain, maybethisis a customerrelationshipmanagementsoftware.
Maybethisis a workordersoftwareagain, sometimeTypeofdataintensivesoftwarebasicallywhat'llhappenisthatmobileappwillgobackandcommunicatewithyourbackendinordertobe a bitpushy.
Theclusterstaysupandrunning, sobasicallyinthisinstance, thenrightifwehave a frontendhere.
Soifwehave a littlesmartsmartphoneandthat's tryingtocommunicatebackwith a server, that's oneofthingsyououghttobethinkingaboutwhenit's communicatingwith a backend.
Itmaybecommunicatingwithjustonephysicalorvirtualserver, oritmightbecommunicatingwith a wholeclusterofthesedatabaseservers.
Ifyoutake a databasefileandjustdumpiton a serveranditdoesn't havethesoftwaretoactuallyrunit, thennothingisgoingtohappen.
Soyou'reactuallygoingtoneedtoinstallmysequelonto a physicalmachineanddependingonhowcomplicatedyourinfrastructureis, youthenmayactuallycreate a clusterofthese.
Sowith n mysequel, Soyouhavemysequel, installitonyourserver, andthenyoucancreate a databaseandtheimportantthingtounderstandhereisyoucancreateonedatabaseortodatabasesor 20 databasesifyouwant.
Basically, againtheseair.
Justlogicalhighlevelgroupingsforallthedatathatyou'regonnahavenow, a lotoftimes, ifyouhave a company, youwilljusthaveone.
Youhavefivepeopleinyourcompanyandyousay, youknow, I don't wanttomake a reallycomplicateddatabasestructure, so I willhave a singledatabasethatwillcontainallofourtablesthatwillcontainallofherdatabecause I feelprettysecurewiththat.
Right.
ButThequestionbecomes, Whathappensifyouhave a largercompany?
Let's sayyouhave a companyoflike 1000 peopleandthatcompanywith 1000 peoplehassales.
Andsosomethingyouneedtobethinkingaboutagainfrom a securitystandpointisDoyouwanteverythinginonedatabase?
Doyouwantyoursalespeopleandourtechniciansandyourlife, yoursixpeopleandeverybodyelsebeingabletohammeroneThesingledatabaseordoesn't makemoresensetohaveseparatedatabasessoyoucouldhave a C R M basicallybuild a C.
R M database, andthenyoucouldbuild a workorderdatabaseandthenyoucouldbuildlikeaninventoryandbasicallylogistics, youknow, trackingorwhateverdatabase.
Andthenmaybeactually, like a salesandinvoicedatabase, right?
Sobasicallythesalespeople, theywillgoto a onefrontend, andthatfrontendwillpointbacktothe C.
R.
M databaseandthenthetechnicians, they'regoingtogototheirfrontandright.
Solet's saythesalespeople, they'resittingdown, they'reintheoffice, theygoto a Webinterface.
AndsothatWebinterfaceconnectsbacktothe C R M databasethatyou'vecreated, right?
Andsothat's allitconnectsto.
Andthenthetechnicians, youdevelop a nativeappforsomefortheirmobiledevices, androidorIOS, andthetechnicians.
Theypointbacktotheworkorderdatabase.
Andsothethingis, thesalespeopleonlyareabletoconnecttothe C.
R M database, andthetechniciansareonLeahbrokeconnecttotheworkorderdatabase.
Soifyouhave a corruption, ifsomethingstupidhappens, ifbaddatagoesinandstartsscrewingeverythingup, theworstcasescenariohereisthenthatonedatabasethatwillgetcorruptedandthenyou'llhave a nightmaretryingtogetthatbackuponline.
AndtheimportantthingtounderstandhereisRememberwhen I wastalkingaboutthosefrontend's.
Sowetalkedaboutthefrontend's that.
Thencommunicatebackwiththedatabases.
Remember, youcanhave a frontendthatcanactuallycommunicatetomultipledatabases.
Solet's sayyouhavesometechniciansandlet's sayyouhaveLet's sayyouhavelike a leadtechnician.
Soyouhavethissystemhere.
Andsosalesgoto C.
R.
M.
AndnormaltechniciansgototheworkorderWell, eventhoughtheseairseparatedatabases, right, you'recreating a frontendand a frontendcanconnecttoonedatabaseormultipledifferentdatabases.
Sothefirst, thefirstcolumnyou'regoingtohavein a tableisgenerallygoingtobeyourprimarykey.
It's goingtobesomethingsuchas a user i d a part i d aninvoice i d anaccount i delalalalaInthebeginningtomakeiteasiest, youwillmakethatanautoincrementthing.
Solet's sayyouwanttheaverageageofalltheusersinthisparticulartable, youknowwhatyoudon't wantissomehowBobtobe a record, right?
Youdon't wantagedtobeBob, becauseyouweresaying, youknow 12 was 13 plus 15 plusBobplus 17 plus 12 dividedbysixwhenevertogettheretogettheaverageright.
BobBobisnot a number.
Sowhatyou'regoingtogetisyou'regoingtoget a messwhenwithdatabasesortheprogramming, it's calledgarbageingarbageout.
AndsoifyoudosomethingsuchasPutBobintotheinto a fieldwherethey'reexpecting a numberandthatactuallygoesinto a databasethatcancauseallkindsofhell, sowhatyoucandoisyoucanassign a datatypeforthatcolumnforthatfieldandsayitwillonlyacceptintegers.
Sobasically, ifyoutrytoinsertBobinto a columnthathasanad, a typeofenergy, itwillsimplyfailout.
Basically, we'retalkingaboutcost, Socolumnsistheupanddown, andsothatisthedatayou'rebringing a user I d andthedatatypeacrossthosearetheroseorthoseoftherecords.
Andthat's theindividual.
Like I say, useraccountWherethepart i d ortheenvoys, I d thattypeofthing.
Theytheyneedtopulloutinformationfromtheuser's tableorif a newuseraccountiscreated, theyneedtoconnecttothe E T C jet D E T C D database, andthensenddatatotheparticulartable.
Right.
Well, here's oneoftheproblems.
Whathaveyouhad?
Thefrontanddevelopers, right?
Andsowe'vebeengettinguser I d andweget a name, wegetanage, andthenthefrontofdevelopersgoOh, youknow, youknowwhatwereallyneedhere?
Weneed t shirtsize, right?
Weneedtostartgivingout T shirtsThiotothepeoplethatsignupforourservice.
Sountilyourdatabaseadministratorscreate a T shirtcolumnforyou, there's noplacetobeabletoactuallyputthedatathatthefrontanddeveloperswanttogetfromfromtheusers.
Butwhenyou'redealingwithsomethinglikemysequel, basicallywhenyou'repushingandpullingthedata, thereneedstobe a placeforthatdata.
Ifyoudonothave a T shirtcolumn, thenthereisnoplacetoputthe T shirtdata.
Sonotonlydoyouneedtoputthe T shirtcodeintothatfrontend, butyoualsoneedtomakesureyougobackintotheuser's tableandactuallycreate a T shirtcolumnthereandthenmakesurethatyouhavetheappropriatedatatype.
Ifyouhave a voiceover I p systemandthatwasinpeopleonyourvoiceover I P system, thenchangingtheKodakwillmake a lotofdifferencebeforeyourenterprise.
Butifyouthinkifyou'resimplyplayingaroundyouhaveonevoiceover I p phoneonyourdeskandconnectingto a server, you'remostlikelynotgoingtonotice a lotofdifferencewiththeKodak.
Ifyou'renotin a productionenvironment, ifyou'renothammeringthehelloutofyourserver, you'renotisonlygoingtoturninto a messifyoutrytododifferentstorytaken.
Soit's juststaywithDinodeBe.
You'llbehappyforitagainonce.
Onceyoulearn a lotmorethanmessaroundwith a storychanges, I justwanttotellyoutheexactThisisoneofthosethings.
Whenyou'redealingwiththeactualfinishedproductthatyourusersaregoingtobeinteractingwith, you'regoingtohave a frontendand a bank.
Andit's yourmat, mysequelofdatabaseinfrastructure, Whetherit's onesingleserveror a cluster, thatisgoingtobewhat's calledyourbackend, thefrontendistheinterfacethatyourusersaregoingtobeusingagain, whetherthatis a mobileandnativemobileapponIOSorAndroid.
Whetherthatis a Webapplication, whetherthatsomeotherkindofwackythingthatyoucreated.
Doyourememberagainallthedatabase?
Doespeoplegetreallyconfusedwithus?
Sometimesallthedatabasedoesisstore.
Thedatarightisjustisjust a placetostorenamesandagesandskewsandthattypeofstuff, right, actuallyinteractingwhenthatdata, thatiswhatyou'regoingtouse a frontendfor.
Thenwhenyou'reactuallylookingatthedatabaseserverandyou'relookingatthestructureyoucreatewithinthedatabaseserver, thehighestleveland a databaseis a databaseitself.
Soagain, ifyouhave a smallcompanyoryoudon't needthioinput a lotofdifferentkindsofinformationyoumayhave a singledatabaseforyourcompany.
Again.
Youmayhavewonthe C R M database, oryoumayhavewoninvoicingdatabase, andthat's whatcontainsallthedataforyourcompany.
Butagain, ifyouhave a largercompany, youmaythinkabouthaving a CRNdatabaseandtheworkorderdatabaseforyourfueltechniciansandsomekindofinventorydatabase.
From a securitystandpoint, ifoneofthedatabasesgetscompromisedthatyouonlyhavetoworryabout, thatonedatabasecancompromise, soyou'reCroomdatabasegotcorruptedorgotcompromised, butatleastyourinventoryinyoursalesdatabasesarecontinuingtowork, andit's importanttounderstand.
Andsoyou'refrontanddevelopersentyourback, anddevelopershavetobeatleastkindofswordonthesamepage s O thatwhenthey'redevelopingthefullapplicationthatthedatathatisbeingbroughtinbythefrontendhassomeplacetogoandthatwhenthefrontendisrequestingthatandthatisactuallyrequestingdatafromtherightplace.
Sothisisoneproblemyoucanruninto a schemeusis.
Whenyouhavedifferentpeopleindifferentdepartmentstryingtocreate a frontendinthebackend, theymaynamething.
Sowhenyoustartthinkingaboutthiswhenyoustartactuallygoingouttheretobuild a databasebasedsystem, orifyou'retryingtomaintain, onecanhave a betterideaofwhat's goingon.
Thefinalthingagainisthereissomethingcalled a storageenginein a storageinyouandthat's kindofthing.
LikegeeksorlikeWoo, I wanttoplaywithstorageengines.
Therearereasonswhyyoumaywanttochangefromthedefaultstorageengine, sothedefaultstorqueengineandmysequeliscurrentlyit's called I know D B, whichwillbefineforyouagainifyou'reinstallingWordPress.