Best way to create a MySQL database? Tables or separate databases? -
hopefully can answer straightforward question have. i've started using mysql & phpmyadmin creating backend database server, i'm trying figure out best way create database index server. main database hold following tables; music, videos, doc's & files. (music) section hold (5) tables. (videos) section hold (4) tables. (doc & files) hold around (5) tables.
my question following; better, separate databases each of above, or should put 14 tables within main index database?
my other question is, can create index database include (fk)'s other tables use querying & file searching?
any info appreciated. thanks
in opiniĆ³n better have , name them prefix. as
video_table1 video_table2 ....
that way not making connections other dbs. answer applied if tables same application, otherwise separate dbs
can create index database include (fk)'s other tables use querying & file searching?
if you're using innodb. yes!
Comments
Post a Comment