Your understanding of what a MySQL schema is?

Posted 2 weeks ago by davestead

I learned MySQL schema as the "database" that contains tables inside of the "database server" (which is the connection 'host' in PHP MySQL code), but there's seems to be multiple (mis?)understandings of what "schema" means as opposed to "database" (which is apparently already ambiguous).

So say I have a MySQL host 127.0.0.1 named localhost, which contains multiple "databases" or "schemas" (made using CREATE DATABASE) that each have their own tables; I was taught and have generally heard that "schema" was the specific name for each of those "databases" inside of the "host/server database".

It can be confusing but some people know what I'm talking about when I say "schema", some don't, some people think I mean the server or the database/schema when I say "database"... there just seems to be a terminology issue, but I just discovered that MySQL Workbench (made by the MySQL/Oracle people) refers to each "DATABASE" inside of the server database as the "schemas":

https://imgur.com/PYascR5 (I don't know how to paste/attach a screenshot here)

So I'm going to fall back to the MySQL people and consider a "schema" to mean an individual DATABASE (that contains tables) inside of the database host/server; but I'm curious what you think or how you use the terminology, and maybe there needs to be clarification.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.