

Schemas are like folders within a database and are mainly used to group logical objects together, which leads to ease of setting permissions by the schema. You always back up a database it is a discrete unit on its own. Schema VS DatabaseĪ database is your primary container it contains the data and log files, and all the schemas within it. In the MySQL – you can build multiple ‘folders’ in your database, called schemas.

SELECT FROM users - This is a comment Note that standard SQL does not require a whitespace after the second dash. The double dash-comment style requires at least whitespace or control character (space, tab, newline, etc) after the second dash. I’m sure you’re familiar with what a database is, if not, here’s the definition.Ī database is a structured set of data held in a computer, especially one that is accessible in various ways. MySQL supports three comment styles: From a '- ' to the end of the line. You’re creating a schema – not a database!įirstly we are going to want to understand the verbiage used in the product and the difference between database and schemas.Īfter you’ve downloaded MySQL workbench – we will want to begin bringing in data for Tableau consumption. It supports Windows, Linux, and Mac OS operating systems.
#COMMENT IN MYSQL WORKBENCH HOW TO#
If you don’t currently have MySQL on your Mac OS – follow our other tutorial on how to install MySQL on your Mac. MySQL Workbench is a visual database design tool that integrates SQL development, administration, database design, creation, and maintenance into a single integrated development environment for the MySQL database system. Our following blogs will help you with importing a CSV into MySQL on your Mac OS. Welcome to a quick and user-friendly guide to generating your first schema in MySQL.īy the end of this blog, you will understand how to generate a MySQL schema.Ī schema is necessary for importing CSV files or JSON files because our end objective is uploading CSVs and performing custom SQL, and pushing that content into Tableau Desktop.

Let’s create a Schema in your MySQL Workbench on Mac OS.
