📺 Develpreneur YouTube Episode

Video + transcript

How Do I Create A Database And A Table In MySQL/MariaDB?

2023-07-20 •Youtube

Detailed Notes

Databases are a part of almost every modern application. Thus, we often need to use SQL to create tables and a database that houses them. This example shows how to call SQL from Python to build your database and a table. Check out our Python and SQL series for more in depth examples and source code.

You can find out more through our online classes at https://school.develpreneur.com and register for free. Registration will add you to our email list and you will periodically receive coupons for courses as well as notifications of the latest releases.

Transcript Text
foreign
[Music]
well welcome back we are going to
continue looking at we're in a an
application a project and we're looking
at some of the questions we need to
answer whether you do that as a
standalone or you're doing it as part of
this ongoing application
so right now what we want to do is we're
going to focus on how to create a
database in a table in Mariah my sequel
or also Maria DB with python now briefly
I do want to mention that MySQL has
effectively become Maria DB if you deal
with it from the the non-commercial the
free side if you go download it you're
going to see now that if you go to the
MySQL site you're going to be
downloading mariadb there are some
changes in it and so that can cause a
little bit of issue with your with your
connection and things like that
depending on what your driver is but
it should be pretty much a one-to-one
change and you're off and running
whatever you see documented for MySQL
unless it's very old should hold true
for Maria DB now with python what we
have to do and we're going to have I've
got some code pre-written this time just
because it's sort of a pain it's going
to import the MySQL and the MySQL
connector now I know so in order to do
that
it is not going to be so like I use pip3
you're not going to do pip 3 install
MySQL which you would normally do you
also should spell that with two L's it's
actually going to be my SQL connector
and that you have to spell correctly
also
and once you do it in this case it's
going to show you hey you've already
done it
and uh yeah requirements already
satisfied once you have that then what
you can do and what we're doing here
just to sort of a recap I guess we've
got a class I'm just going to have a
class called my database and I'm going
to have all of the database related
stuff sitting in that so that when I run
the we'll call this
these the script
call that
well and we'll check those thing here to
test it at the end so we're going to
have this thing called my database so
we're going to create this class it's
going to have a database name this is
going to be some database we're going to
connect to because MySQL wants you to
connect to something the one that's
almost always going to well is always
going to exist is going to call is
called MySQL even if it's mariadb and
it's really it's the admin type of table
so depending on how you connect you may
or may not have some issues with it the
key is really just to connect because
then after that we should be in a
database and actually more specifically
you can always overwrite this and do it
to a database you already have rights to
permissions to
and we're going to have a connection as
part of our class
and so here's the first real meet
up here is just a query that we're going
to talk about later
so we're going to start with our connect
it's it's actually fairly
straightforward
you are going to send a dictionary of
configuration information which is your
user your password the hostname the
database you're connecting to which
we're pulling from up here
and then this Ray Zone warnings because
it is something that I found
particularly with Maria DB you need to
have that there otherwise it will cause
issues and not let you to connect and
once you do that
you're going to use the MySQL dot
connector which is up here and then
you're going to connect and you're going
to give it that config information so
it's it's fairly straightforward what
I've got here is going to be useless to
you probably so you're going to give it
whatever your username is whatever your
password is probably in this case if
it's local
127001 if not give it the IP address
and whatever the database name is
so if you do that
if you write that code right here we're
going to say here and we're going to
connect so let's just do this we're
going to say
we'll go ahead and wrap this whole thing
try accept
and let's do this so return value is
going to be either
negative one
or one
then we're going to return the return
value
whoops
and so here let's just say I'm not going
to do this yet
I am going to close it afterwards
and I'm going to do let's just do this
print
that so I can see if I connect or not
and if I run it
then what I'm going to see here is I got
a one so I have connected to the
database pretty simple pretty
straightforward
so that's our first thing is we want to
be able to connect to the database once
we've connected the database now let's
actually create a database that was
basically connecting to the server so
we're going to create a database in
within that the way you do that within
MySQL is actually really simple it's
create space database space the name
and so we want to do here is we're going
to come down here and well actually I'm
sorry first let's go look at this let's
actually do something in this so is that
list tables that is oh this databases so
let's do this list databases was just
right here
is very simple command it's just show
databases once you're in there execute
show databases so what we're going to do
and this is sort of our first shot is
we're going to come in we're going to
when we connect
we already took that connection and held
it within the class so that cnx is now
there so we come in
we do this list databases we're going to
get a cursor off of our connection so
we've got our connection in there we
haven't closed or anything
then we've got this query show databases
and we're going to execute use that
cursor to execute
and then now that we've executed it
we're going to fetch all of the rows
back and we're going to store that in
this thing called rows
and we're just going to walk through and
say four row in rows print the row
return value equals one otherwise it's
going to be negative 1.
so that will give us here we don't need
a database for list databases and then
we're going to close the connection
we're done so now if we look at it
if we get this is that we come in and we
get the one for the connection
and these are all the databases that I
happen to have in this one somewhere in
here you will see MySQL but you also see
that each of these is a
uh pairing within itself so what I can
do is if I go into my list tables what I
can do is I can try to do the first
piece and get just the name
let's see how that works out for us
and that gives us
just the names for everything so did I
do that right
oh that's those tables sorry wrong one
that's why I shouldn't be in
let's see
I want list databases
here if I do row zero
now I'm getting all of the database
names and this is really just
a you know convenience kind of utility
function but to show that now we have
actually connected to the database and
we have we're able to do something with
it so now that we can list databases
we're going to do an I mean mydb Dot
create database and we're going to give
it a name and so this one is going to be
actually
oh create database so let's call this
create
database and we're going to call this
Shorty
this is going to be our database
and so now
let's move our database list afterwards
and so if we create this database which
is right
here create database is very
straightforward we're going to do a
create it's CreateSpace database and
then the name we're going to give it the
name we're going to actually go ahead
and set the name that we're working with
now that doesn't set it within the
database itself or within the server
itself so what we would really want to
do is come in here
and after we set our name we're just
going to do
a use and that'll switch our database
over we're going to execute the query
and we can go ahead and commit and that
will put us so that we're actually
seeing the the database that we're in so
what we're going to do let's do this
we're going to come in
this time we're going to connect
and we're going to do a list tables
and we'll show that later I'll talk I'll
walk through that a little bit but right
now it's just to show it so when we
first come in we're going to connect to
mySQL and I think it's going to give us
a list because I'm I think I've got a
user that has that permission we're
going to find out
and then we're going to create shorty
we're going to list the databases and
see if it's there and then we're
actually going to list the tables in
shorty because we should be in that
database
so in doing that and let's do this let's
do
this
tables whoops
I think skills are a little bit off
okay so we'll do that that gives us
something to work with now there's some
other things we could do we might want
to put it up in those functions but for
now we're just going to keep it simple
so if we run it now
let's go look at this what we're going
to see is
here we go so we create it we come in
and we list tables and we see initially
these are all MySQL tables and you can
sort of see stuff because it's like the
servers and stuff like that
then we come in and we're going to list
our databases and boom because we've
already created shorty
it's right there so we have that
database now
and then we list tables we're getting
nothing on that because there are no
tables found because we haven't created
any and shorty
so now let's just do the same thing and
let's get the list databases and what's
tables we will
get those out of the way so let's see
what happens if we try to create the
database again
can't create it it already exists so
what we can do with this
yes I can't believe we can do if not
exists
and there's better ways to do this but
we're going to do if not exist name I
think that will work we're gonna find
out
uh
so okay
uh oh that needs to be
not exist
that needs to be double quotes
the single quotes need to wrap our name
which is why there are better ways to do
this which we will talk about in a
minute and then it's there so it's not
actually that I forget what it actually
is called
so we're just going to leave it at this
and we're just not going to worry about
it again so we're going to do this try
catch it's going to print that it's
going to do return value and actually
what we can do here
that is the create database we're not
even going to bother printing it right
now we'll just return it so it doesn't
really matter
and we'll carry on so now we're going to
get no errors
closely because we're not displaying
them and oh we don't need to print this
we do always need to connect we're
always going to need to set this up so
we're going to King to connect we don't
need to create the data set base anymore
so now what we're going to do
is the database name
is now going to be shorty so we're going
to get that from the start so we're
going to connect right away
to shorty and so if we do mydb dot list
tables
we should see none from the start and
there you go we don't see any
so now we're connecting to our database
we don't need to create it anymore
so we'll just put this up here somewhere
and we'll put that there okay
uh wait no oh yeah we'll do that so
we've got all that now what we need to
do and this is sort of our cleanup work
of resources
so now it's really not very useful if
you don't have any tables so let's
finish that question which was the
original one here is hey how do I create
well that's in the way how do I create a
database and a table within python so
we're going to do the same thing and
there are a couple ways you can do it
but we're going to do it oops
in here because it's going to be
something could be useful in the long
run for us to like build a database from
scratch
so we're going to use this create table
SQL this is the what we're going to
execute this time around and the way
this is going to do it is it's going to
be we've created this out so it's going
to be table links
and there's a lot of way you could build
this on the fly if you really wanted but
we're not going to
in this case it's going to be the
table's name is going to be links
we're going to have an ID because we
need one and it's going to Auto
increment so this means the first record
will be one the second one will be two
three four Etc
we're going to have the original link
that was sent in because this is the
links that are dealing with this Shorty
application which basically what it
cares about is the Source here if you
retrieve new UL there's the it's
whatever your old URL is and then what
is that new URL what is that ID to give
you the new URL and so in here
we're going to store the old one
we're going to have a code just in case
which is usually going to be probably
we're going to a couple ways we do it
for now we're going to start what's
going to be the ID
and then
um
or maybe not we'll figure out what we
want to do with that then the user ID
and we we're just going to assume that
at some point we may allow for a user ID
if not it's going to just be a zero so I
have to worry about it and then of
course what we need to do we're not
going to go too deep into it but then we
need a primary key which is going to be
our unique ID that we're generating
because we are Auto incrementing so in
order to do that when we create table
what we do here oh we don't need name
create table is going to come in it's
going to execute
within that class the self dot create
table SQL it's going to commit
and then we're off and running and so
now if we do
we're going to create table
whoops
then we are going to see now let's do
this
it's going to be the tables in
and we're going to go ahead and do my DB
dot DB name so now we're going to see
where these things at if we run it boom
tables and shorty is links and what we
want to do since we have that list
tables let's fix that as well
so here and do the same thing so we're
just going to take that first piece we
get the name and not that full structure
now if we run it we're going to have a
problem because it's going to say the
links already exists
and so we could check that but right now
we're just going to go ahead and let
that allow that to go it's going to say
hey tables and Shores links and so here
we go so we have
create a database and a table in Python
using a in MySQL using that connector so
check question answered we're going to
continue on and go into our next
question next time around so just take a
look out there if there's anything else
that's a side note or something you're
like Hey how do they get there check it
out because we probably have one of
those out there as we are building out
this this approach to information to
build out your applications but we're
going to continue back with this
application as well and we're going to
come right back into a couple things
we're going to actually save a record
and then we're going to be able to
search the table for a record because
we're going to start linking our
database into our little shorty
functionality here thanks a lot for your
time we'll catch you next time
hello this is Rob with developmentor
also known as building better developers
wanted to announce that we have
school.developmentor.com feel free to
check it out if you like any of this
information any of the content that
we've sent and you would like to see
more you can come out you can enroll for
free we have free courses we've got
places for you to get better at just
learning a technology our how to's you
can work on your business skills we can
help you with becoming a better
developer as encoding and things like
that a lot of the stuff you've seen on
YouTube we also have out at
school.development or we just have it a
little more of a educational format and
a way for you to track your progress as
you move forward becoming a better
developer
thank you
Transcript Segments
0.42

foreign

18.89

[Music]

27.18

well welcome back we are going to

29.58

continue looking at we're in a an

32.16

application a project and we're looking

34.14

at some of the questions we need to

35.7

answer whether you do that as a

37.38

standalone or you're doing it as part of

39.3

this ongoing application

41.46

so right now what we want to do is we're

43.98

going to focus on how to create a

45.18

database in a table in Mariah my sequel

48.899

or also Maria DB with python now briefly

52.8

I do want to mention that MySQL has

55.8

effectively become Maria DB if you deal

58.98

with it from the the non-commercial the

61.86

free side if you go download it you're

64.379

going to see now that if you go to the

66

MySQL site you're going to be

67.2

downloading mariadb there are some

69.6

changes in it and so that can cause a

71.76

little bit of issue with your with your

74.4

connection and things like that

75.54

depending on what your driver is but

77.939

it should be pretty much a one-to-one

80.88

change and you're off and running

82.56

whatever you see documented for MySQL

84.72

unless it's very old should hold true

87.24

for Maria DB now with python what we

90.72

have to do and we're going to have I've

93

got some code pre-written this time just

94.86

because it's sort of a pain it's going

96.84

to import the MySQL and the MySQL

99.42

connector now I know so in order to do

101.82

that

102.96

it is not going to be so like I use pip3

105.24

you're not going to do pip 3 install

106.64

MySQL which you would normally do you

109.799

also should spell that with two L's it's

111.899

actually going to be my SQL connector

114.24

and that you have to spell correctly

116.399

also

118.079

and once you do it in this case it's

119.939

going to show you hey you've already

121.079

done it

122.579

and uh yeah requirements already

125.46

satisfied once you have that then what

128.819

you can do and what we're doing here

130.319

just to sort of a recap I guess we've

132.78

got a class I'm just going to have a

133.92

class called my database and I'm going

135.42

to have all of the database related

136.86

stuff sitting in that so that when I run

139.98

the we'll call this

144.5

these the script

151.02

call that

153

well and we'll check those thing here to

155.7

test it at the end so we're going to

157.02

have this thing called my database so

158.459

we're going to create this class it's

160.319

going to have a database name this is

161.879

going to be some database we're going to

163.26

connect to because MySQL wants you to

166.2

connect to something the one that's

168

almost always going to well is always

169.739

going to exist is going to call is

171.54

called MySQL even if it's mariadb and

174.72

it's really it's the admin type of table

177.599

so depending on how you connect you may

179.94

or may not have some issues with it the

182.28

key is really just to connect because

184.379

then after that we should be in a

186.72

database and actually more specifically

188.519

you can always overwrite this and do it

191.099

to a database you already have rights to

193.5

permissions to

195.12

and we're going to have a connection as

197.099

part of our class

198.48

and so here's the first real meet

201.36

up here is just a query that we're going

203.7

to talk about later

204.9

so we're going to start with our connect

206.159

it's it's actually fairly

207.959

straightforward

209.28

you are going to send a dictionary of

212.64

configuration information which is your

214.56

user your password the hostname the

217.14

database you're connecting to which

218.64

we're pulling from up here

220.26

and then this Ray Zone warnings because

222.48

it is something that I found

224.76

particularly with Maria DB you need to

226.5

have that there otherwise it will cause

228.72

issues and not let you to connect and

231.18

once you do that

232.62

you're going to use the MySQL dot

234.9

connector which is up here and then

237.299

you're going to connect and you're going

238.739

to give it that config information so

240.9

it's it's fairly straightforward what

243.36

I've got here is going to be useless to

244.98

you probably so you're going to give it

246.84

whatever your username is whatever your

249.36

password is probably in this case if

252.42

it's local

253.7

127001 if not give it the IP address

257.239

and whatever the database name is

261.239

so if you do that

263.1

if you write that code right here we're

265.919

going to say here and we're going to

267.84

connect so let's just do this we're

270

going to say

272.58

we'll go ahead and wrap this whole thing

278.639

try accept

286.639

and let's do this so return value is

289.62

going to be either

291.6

negative one

293.58

or one

295.38

then we're going to return the return

297.479

value

300.419

whoops

305.1

and so here let's just say I'm not going

308.759

to do this yet

310.8

I am going to close it afterwards

313.38

and I'm going to do let's just do this

315.66

print

317.58

that so I can see if I connect or not

322.32

and if I run it

325.32

then what I'm going to see here is I got

326.699

a one so I have connected to the

328.38

database pretty simple pretty

331.139

straightforward

332.58

so that's our first thing is we want to

334.38

be able to connect to the database once

336.3

we've connected the database now let's

339.24

actually create a database that was

341.699

basically connecting to the server so

343.08

we're going to create a database in

345.3

within that the way you do that within

347.46

MySQL is actually really simple it's

349.38

create space database space the name

353.28

and so we want to do here is we're going

355.8

to come down here and well actually I'm

357.78

sorry first let's go look at this let's

359.52

actually do something in this so is that

362.52

list tables that is oh this databases so

365.28

let's do this list databases was just

367.8

right here

369.479

is very simple command it's just show

371.639

databases once you're in there execute

373.68

show databases so what we're going to do

375.66

and this is sort of our first shot is

378.3

we're going to come in we're going to

380.22

when we connect

383.34

we already took that connection and held

386.52

it within the class so that cnx is now

389.88

there so we come in

391.56

we do this list databases we're going to

393.72

get a cursor off of our connection so

395.58

we've got our connection in there we

397.139

haven't closed or anything

398.88

then we've got this query show databases

400.979

and we're going to execute use that

402.539

cursor to execute

404.819

and then now that we've executed it

406.979

we're going to fetch all of the rows

408.9

back and we're going to store that in

410.4

this thing called rows

411.9

and we're just going to walk through and

413.34

say four row in rows print the row

415.68

return value equals one otherwise it's

417.84

going to be negative 1.

419.34

so that will give us here we don't need

421.86

a database for list databases and then

423.72

we're going to close the connection

424.5

we're done so now if we look at it

428.46

if we get this is that we come in and we

430.319

get the one for the connection

432.72

and these are all the databases that I

434.639

happen to have in this one somewhere in

436.139

here you will see MySQL but you also see

439.02

that each of these is a

442.259

uh pairing within itself so what I can

446.639

do is if I go into my list tables what I

450.9

can do is I can try to do the first

452.88

piece and get just the name

455.28

let's see how that works out for us

457.919

and that gives us

461.16

just the names for everything so did I

463.38

do that right

464.819

oh that's those tables sorry wrong one

469.02

that's why I shouldn't be in

471.66

let's see

472.74

I want list databases

477.06

here if I do row zero

480.12

now I'm getting all of the database

482.4

names and this is really just

484.5

a you know convenience kind of utility

486.419

function but to show that now we have

489.06

actually connected to the database and

491.94

we have we're able to do something with

494.46

it so now that we can list databases

496.74

we're going to do an I mean mydb Dot

502.08

create database and we're going to give

504.3

it a name and so this one is going to be

507.9

actually

511.139

oh create database so let's call this

513.719

create

514.979

database and we're going to call this

516.959

Shorty

518.279

this is going to be our database

521.459

and so now

523.2

let's move our database list afterwards

527.64

and so if we create this database which

530.519

is right

532.62

here create database is very

534.54

straightforward we're going to do a

536.519

create it's CreateSpace database and

538.5

then the name we're going to give it the

540.18

name we're going to actually go ahead

541.98

and set the name that we're working with

544.44

now that doesn't set it within the

547.56

database itself or within the server

550.08

itself so what we would really want to

551.76

do is come in here

555.18

and after we set our name we're just

558.18

going to do

561.54

a use and that'll switch our database

563.7

over we're going to execute the query

565.94

and we can go ahead and commit and that

569.16

will put us so that we're actually

570.3

seeing the the database that we're in so

574.08

what we're going to do let's do this

576.24

we're going to come in

577.68

this time we're going to connect

579.66

and we're going to do a list tables

584.459

and we'll show that later I'll talk I'll

587.1

walk through that a little bit but right

588.899

now it's just to show it so when we

590.82

first come in we're going to connect to

591.839

mySQL and I think it's going to give us

593.64

a list because I'm I think I've got a

595.5

user that has that permission we're

597

going to find out

598.08

and then we're going to create shorty

600.959

we're going to list the databases and

602.399

see if it's there and then we're

603.42

actually going to list the tables in

604.56

shorty because we should be in that

606.42

database

607.44

so in doing that and let's do this let's

609.899

do

611.64

this

615.959

tables whoops

618.72

I think skills are a little bit off

633.6

okay so we'll do that that gives us

635.339

something to work with now there's some

636.6

other things we could do we might want

637.86

to put it up in those functions but for

639.779

now we're just going to keep it simple

640.92

so if we run it now

643.38

let's go look at this what we're going

645.779

to see is

649.339

here we go so we create it we come in

652.56

and we list tables and we see initially

654.92

these are all MySQL tables and you can

658.92

sort of see stuff because it's like the

661.68

servers and stuff like that

664.56

then we come in and we're going to list

666.48

our databases and boom because we've

668.7

already created shorty

671.76

it's right there so we have that

673.2

database now

674.519

and then we list tables we're getting

676.32

nothing on that because there are no

678.48

tables found because we haven't created

680.279

any and shorty

682.38

so now let's just do the same thing and

684.54

let's get the list databases and what's

686.399

tables we will

688.26

get those out of the way so let's see

690.3

what happens if we try to create the

691.62

database again

693.779

can't create it it already exists so

697.079

what we can do with this

700.26

yes I can't believe we can do if not

703.079

exists

707.88

and there's better ways to do this but

710.519

we're going to do if not exist name I

712.74

think that will work we're gonna find

714.42

out

717.3

uh

718.86

so okay

721.5

uh oh that needs to be

726.6

not exist

729.019

that needs to be double quotes

733.62

the single quotes need to wrap our name

738.18

which is why there are better ways to do

740.279

this which we will talk about in a

741.959

minute and then it's there so it's not

744.42

actually that I forget what it actually

746.1

is called

747.3

so we're just going to leave it at this

748.8

and we're just not going to worry about

749.579

it again so we're going to do this try

751.019

catch it's going to print that it's

752.94

going to do return value and actually

755.22

what we can do here

757.38

that is the create database we're not

759.6

even going to bother printing it right

761.04

now we'll just return it so it doesn't

763.139

really matter

764.519

and we'll carry on so now we're going to

766.38

get no errors

768.36

closely because we're not displaying

769.74

them and oh we don't need to print this

771.66

we do always need to connect we're

774

always going to need to set this up so

775.5

we're going to King to connect we don't

777.12

need to create the data set base anymore

778.62

so now what we're going to do

782.42

is the database name

786.12

is now going to be shorty so we're going

788.579

to get that from the start so we're

789.779

going to connect right away

791.7

to shorty and so if we do mydb dot list

795.6

tables

797.579

we should see none from the start and

800.639

there you go we don't see any

802.56

so now we're connecting to our database

804.12

we don't need to create it anymore

807.42

so we'll just put this up here somewhere

810.839

and we'll put that there okay

814.62

uh wait no oh yeah we'll do that so

818.1

we've got all that now what we need to

819.72

do and this is sort of our cleanup work

823.32

of resources

827.04

so now it's really not very useful if

829.5

you don't have any tables so let's

831.12

finish that question which was the

833.639

original one here is hey how do I create

835.98

well that's in the way how do I create a

837.66

database and a table within python so

840.36

we're going to do the same thing and

841.5

there are a couple ways you can do it

842.7

but we're going to do it oops

845.16

in here because it's going to be

847.32

something could be useful in the long

848.579

run for us to like build a database from

850.56

scratch

852.06

so we're going to use this create table

853.98

SQL this is the what we're going to

856.56

execute this time around and the way

858.3

this is going to do it is it's going to

859.92

be we've created this out so it's going

861.839

to be table links

863.279

and there's a lot of way you could build

865.38

this on the fly if you really wanted but

866.88

we're not going to

868.68

in this case it's going to be the

871.019

table's name is going to be links

873.6

we're going to have an ID because we

875.22

need one and it's going to Auto

876.3

increment so this means the first record

878.579

will be one the second one will be two

880.32

three four Etc

882.18

we're going to have the original link

883.68

that was sent in because this is the

886.019

links that are dealing with this Shorty

888.06

application which basically what it

890.339

cares about is the Source here if you

894

retrieve new UL there's the it's

895.98

whatever your old URL is and then what

898.38

is that new URL what is that ID to give

901.32

you the new URL and so in here

905.16

we're going to store the old one

907.32

we're going to have a code just in case

909.779

which is usually going to be probably

911.579

we're going to a couple ways we do it

913.199

for now we're going to start what's

914.04

going to be the ID

915.42

and then

917.16

um

917.94

or maybe not we'll figure out what we

919.92

want to do with that then the user ID

922.019

and we we're just going to assume that

924.12

at some point we may allow for a user ID

926.04

if not it's going to just be a zero so I

928.019

have to worry about it and then of

929.519

course what we need to do we're not

931.139

going to go too deep into it but then we

932.399

need a primary key which is going to be

934.38

our unique ID that we're generating

936.12

because we are Auto incrementing so in

938.94

order to do that when we create table

944.82

what we do here oh we don't need name

947.94

create table is going to come in it's

949.92

going to execute

952.56

within that class the self dot create

955.139

table SQL it's going to commit

957.66

and then we're off and running and so

959.76

now if we do

964.92

we're going to create table

970.199

whoops

972.24

then we are going to see now let's do

975.779

this

979.32

it's going to be the tables in

983.339

and we're going to go ahead and do my DB

986.459

dot DB name so now we're going to see

989.16

where these things at if we run it boom

993

tables and shorty is links and what we

996.18

want to do since we have that list

997.38

tables let's fix that as well

1000.82

so here and do the same thing so we're

1004.16

just going to take that first piece we

1005.48

get the name and not that full structure

1007.72

now if we run it we're going to have a

1010.1

problem because it's going to say the

1011.24

links already exists

1015.56

and so we could check that but right now

1017.6

we're just going to go ahead and let

1018.56

that allow that to go it's going to say

1020.54

hey tables and Shores links and so here

1023.06

we go so we have

1026.24

create a database and a table in Python

1029.419

using a in MySQL using that connector so

1033.38

check question answered we're going to

1036.439

continue on and go into our next

1038.36

question next time around so just take a

1041.059

look out there if there's anything else

1042.62

that's a side note or something you're

1044.299

like Hey how do they get there check it

1046.1

out because we probably have one of

1047.299

those out there as we are building out

1049.4

this this approach to information to

1053.419

build out your applications but we're

1054.98

going to continue back with this

1056

application as well and we're going to

1057.799

come right back into a couple things

1059.78

we're going to actually save a record

1061.58

and then we're going to be able to

1062.66

search the table for a record because

1064.94

we're going to start linking our

1066.02

database into our little shorty

1069.2

functionality here thanks a lot for your

1071.6

time we'll catch you next time

1074.059

hello this is Rob with developmentor

1076.46

also known as building better developers

1078.559

wanted to announce that we have

1080.919

school.developmentor.com feel free to

1083.24

check it out if you like any of this

1085.4

information any of the content that

1087.32

we've sent and you would like to see

1088.58

more you can come out you can enroll for

1090.62

free we have free courses we've got

1092.9

places for you to get better at just

1095.539

learning a technology our how to's you

1098.24

can work on your business skills we can

1100.34

help you with becoming a better

1101.72

developer as encoding and things like

1104.12

that a lot of the stuff you've seen on

1105.799

YouTube we also have out at

1107.98

school.development or we just have it a

1110.24

little more of a educational format and

1112.76

a way for you to track your progress as

1115.28

you move forward becoming a better

1117.44

developer

1127.72

thank you