Skip to main content

How to Create a Schema in your MySQL Workbench on Mac OS

Let’s create a Schema in your MySQL Workbench on Mac OS.
Welcome to a quick and user-friendly guide to generating your first schema in MySQL.
By the end of this blog, you will understand how to generate a MySQL schema.
A 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.
Our following blogs will help you with importing a CSV into MySQL on your Mac OS.
If you don’t currently have MySQL on your Mac OS – follow our other tutorial on how to install MySQL on your Mac.

You’re creating a schema – not a database!

Firstly we are going to want to understand the verbiage used in the product and the difference between database and schemas.
After you’ve downloaded MySQL workbench – we will want to begin bringing in data for Tableau consumption.

MySQL has Schemas in the database!

I’m sure you’re familiar with what a database is, if not, here’s the definition.
A database is a structured set of data held in a computer, especially one that is accessible in various ways.
In the MySQL – you can build multiple ‘folders’ in your database, called schemas.

Schema VS Database

database is your primary container; it contains the data and log files, and all the schemas within it.
You always back up a database; it is a discrete unit on its own.
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.

Creating a Schema in MySQL Mac OS

Let’s talk about the point and click methods first.
When you have your workbench open – you’ll notice a place on the bottom left labeled “SCHEMAS,” and that’s where we want to click right to build a new Test Database!

create schema on mysql mac os mysql workbench alt text
Creating your first schema on your Mac OS MySQL.

Setting up your MySQL Schema on your Mac

Let’s start setting up your MySQL Schema.
Name your MySQL schema “Test_Schema1.”

schema name settings for test schema on mysql
After you right click to create your schema – rename your MySQL schema.

Use UTF-8 for your collation.

What is UTF-8 Collation?

From Wikipedia, the free encyclopedia
UTF-8 is a variable width character encoding capable of encoding all 1,112,064 valid code points in Unicode using one to four 8-bit bytes.
The encoding is defined by the Unicode standard and was initially designed by Ken Thompson and Rob Pike.
The name is derived from Unicode (or Universal Coded Character SetTransformation Format – 8-bit.
We will use UTF-8 for this schema.

utf8 collation selection on mysql macos alt text
MySQL refers to UTF8 as a common choice. For our needs – let’s use the UTF8 default.

Click apply – which is on the bottom right of the screen.

Left click apply.
Left click to apply.

Wrapping up your schema build in Mac OS MySQL Workbench

Let’s wrap up your schema creation in MySQL.
If you’ve followed along you will see this window.

schema creation on mysql for Mac OS
MySQL generates SQL, shows it to you, and maybe that’s easier for you in the future?

This leads us to our next topic.
Using SQL – instead of the GUI!

Using SQL to generate a Schema in your Mac OS on MySQL Workbench

Using SQL is an alternative to the clicks we just gained your first schema. Woot!
Most GUI steps on MySQL will uncover SQL that you’ve generated VIA using a built-in wizard.
The native features in MySQL offer a glimpse into creating your first schema.
CREATE SCHEMA `Test_Schema1` DEFAULT CHARACTER SET utf8 ;
You can copy and paste this code into a query on MySQL.

If you have MySQL Workbench open, you have a query open!

Paste your code and build Test_Schema2.

creating a schema in mysql query in SQL
Change your Schema1 to Schema2. Click the lightning bolt to execute the query.

Now you should have two SCHEMAS – be sure to click the refresh button, and both will be present.
It will look like this screenshot below.

schema refresh button on mysql Mac OS
Click the tiny refresh button.

Get used to clicking the refresh button on MySQL Workbench and all other database GUI interfaces.
You’re making changes to something living and breathing on your computer, and right now – you have a database on your computer. Congratulations!
Again, the refresh is a normal process, don’t worry if you don’t see your work – especially if you’ve not refreshed your GUI interface, also known as your MySQL Workbench!
Did you expect it would be this easy to create a Schema in your MySQL Workbench on Mac OS?

JULY 4, 2017


Comments

Popular posts from this blog

Tableau 10.5 is here dude.

Tableau  Desktop 10.5 Update is here at last! One major note we notice is that 10.5 and above will require 64bit operating systems. Guess what?!  Tableau Desktop  10.5 Update is packed with a bunch of cool new connectors, an improved data engine, updated extract API to support the new extract format, visualizations in tooltips, and much more. Here are a few notes from Tableau’s site  here . Be sure to upgrade and download the latest Tableau Desktop 10.5 update! If you need  tableau help austin , we are here to help. Extracts use the new .hyper format Beginning with version 10.5, when you create an extract, it uses the new .hyper format. Extracts in this new format take advantage of the improved data engine, which supports the same analytical and query performance as the data engine before it, but for even larger extracts. Similarly, when you perform an extract task on a .tde extract using version 10.5, the extract is upgraded to a .hyper extract. For mo...

Optimizing Images in Tableau

Learn how to optimize images or  Tableau Desktop  is slower. Optimize images in  Tableau  Desktop before publishing to  Tableau Server  dude.  This blog will help you make your dashboard not so damn slow! And if you need tableau help austin , we are here to help. Optimizing Images in  Tableau  Desktop is the true path to split second reporting and dashboards will load fast. I just recently optimized 2.9k images for a local store e-commerce website. In an attempt to migrate and increase ranking. We are transitioning from files that are 500kb to 1mb – down to sizes of <60kb. Our client is about to dominate their competition with this kind of  onsite SEO . Optimizing in Tableau Desktop should be no different than a web page if end user happiness is key. Split second is the goal and just because  Tableau  Dashboards you publish to  Tableau  Server are not going to carry a Google Ranking, you should still ...

Automated Tableau Server Dashboard Image Scapping.

We show you How to do  Tableau  Server Automated Dashboard Image or Images using Tab admin. We are  Tableau Developers  with years of  Tableau Consulting  experience. Read my  Resume  if you’d like. Dev3 will accomplish this with the very user-friendly PowerShell. There are many ways to solve this workload; this is one version of the solution. Automating Tableau Server Images with Dev3lop. It’s a 100% successful script to automate content. In this instance – automated dashboard image or images. It’s enjoyable to pick up a new language if you have the time or like new puzzles. “You do not need prior programming knowledge to pick this up automate dashboard image script.” Quote date 7/15/20: Client User feedback Is this the best solution?  No – it’s a solution that I was able to hand to business users and did not need to support the script afterward – The script is just easy to support, that is why it was developed. Automate D...

3 things to know about Tableau Logo

Need help Finding the  Tableau  Logo Correctly? That’s where this blog comes into play. Tableau  logo png, found on  Tableau Software  Home Page. We show you how to get the logo correctly below. Learn about Tableau Logo and logo usage online .  To learn about Tableau – read our  Tableau Definition  blog. We built this blog to help others understand the impacts of grabbing logos willy-nilly online. How to grab the Tableau Logo correctly from Tableau website How to avoid spam websites And an explanation of SEO, how it’s missing, and where it isn’t. NEED A TABLEAU DEVELOPER? Go to the Headquarters  Tableau  Website to Download the Tableau Logo! https://www.tableau.com/ Click  here  to navigate to the Tableau Homepage. You will see two important things. Right click and open the logo in a new window! Right click, save image as or open image in new tab. We use new tab because sometimes the logo is embedded in ...

Tableau pricing for the data experts.

New  Tableau  Pricing Will Change Your Life. Our  video  below will help you quickly understand the prices and the difference between  Tableau  Public, Tableau Server, and  Tableau  Online. If you need  tableau help austin , we are here to help. Welcome to the beginning of your journey and we are excited to share more about  Tableau  pricing. Buy  Tableau  for Less than 2 dollars a day! Now for almost 2 dollars a day – you can download a Personal copy of  Tableau Desktop ! If you have not tried  Tableau  before, be sure to check out the free trial version first. If you’ve tried it in the past – have you heard about the latest  Tableau  pricing changes? Tableau  lowers barriers, and we are excited to share these details regarding each product. Welcome to a new age of subscription pricing. What is a Tableau Consultant?  If you don’t know read about it here! Table...

Tableauhelp Austin 3

Tableauhelp How to become a Data Analyst in 2017 Learn About Being a Data Analyst has a lot to do with SEO in 2017. We love explaining How to become a Data Analyst in 2017 with over a decade of data solutions. Hey, data analyst or future data superstar. Do you like big data and you can not lie? Data analysts build intuitive visualizations. Now the term data analyst is a popular coined title for anyone using a spreadsheet for a few years. Similar to the software companies title being used as a business title. 'Business Title' or would it be easier to say best practice? 'Business Title' or would it be easier to say best practice? Similar to the title being used professionally, like Tableau Developer, Tableau Desktop Expert, and Tableau Consultant. The accountant went to college for accounting, and this day and age - the data expert did not? I've seen hundreds of data analysts who had never used SQL until after working with me too! Al...

Free Tableau Help

Need free Tableau Help ? You probably don't need tableau help . What you need is tableau solutions. Tableau help us the name of the online help for Tableau Software. It's free. Again, Tableau Help is free and on Tableau Softwares website. We give Tableau Help away for free. Tableau is easy and we don't charge you for help. We know how to use the product and don't need for you to pay us to figure out easy work. We instead do long scalable solutions for businesses who know the difference between experience and product clicking, We have done more inside Tableau than sales, and understand being a freelance Tableau developer is important. That's why we ran on page one of tableau consulting along with cheating companies and fakes businesses pretending to rank. The google algorithm isn't catching interworks. They have been cheating for years. So, now everyone thinks it's a free game of lazy seo using illegal strategies. I disagree. We should use real...

What does a tableau consultant do during their fun filled days?

What does a  Tableau consultant  do – our family always seems to ask us because they have never heard of Tableau. We can ask them to look up the  Tableau Definition  but that doesn’t explain what we really do. If you need  tableau help austin , we are here to help. The Nielsen Company was curious about our Trip Cost. So, we broke it down in excel, pasted in  Tableau , and showed them what a  Tableau consultant  can do with a few minutes of work. Our usual blimp view explanation is: “We help people see and understand data.” The deeper response is we help small, medium and large corporations clean up data, show everyone how to do it, and empower companies to be better with Tableau products. What if the data is complex? You need someone with experience in database solutions. We have flashy logos because we are data experts first and  Tableau  Jedi second. So what does a Tableau consultant do? Below we will e...

Rebloged - MongoDB Atlas Connect an IP, Make it Public, Delete Access

TABLEAU   AUSTIN SEO   SERVICES Tableau Consulting Business Intelligence Consulting Austin Web Developers Austin SEO Experts   ABOUT Clients Networking GoPro Testimony   BLOG TABLEAUHELP TABLEAU SERVER Upgrade Tableau Server, Restore Tableau Server, and Advice. Tableau Server Automated Dashboard Image or Images TABLEAU DESKTOP Download Tableau Desktop Install tableau desktop 6 Easy Steps – Making a Sparkline Chart Tableau Desktop Optimize Images in Desktop Copy and Paste Latitude and Longitude in Tableau Desktop What does a Tableau Consultant do? Tableau Pricing – The Pricing Offers Everyone Access! Tableau Logo – Finding the correct Tableau Logo With Ease. BUSINESS Center buttons in WordPress Visual Composer Split url to columns with Google Sheets Learning how to use Google to help start your business! 4 Steps – How to Embed Google Data Studio in iFrame How to Install WordPress Theme ...