
Take on the role of a database administrator for Maven Bear Builders, using SQL to build and automate data infrastructure with schemas to ensure security, backups, and scalable data recovery.
Review prerequisite DBA skills for the advanced MySQL Workbench course, covering data definition and manipulation, automation, database design concepts, data types, and SQL components like select, from, where, and joins.
Install and connect MySQL Community Server and MySQL Workbench to host and manage course schemas. Learn the Workbench interface, create databases, and follow OS-specific setup steps for Mac and PC.
Download the Mac version of MySQL community server from dev.mysql.com, install the DMG, set a root password, and verify the installation in system preferences before moving to MySQL Workbench.
Prepare workbench by setting date handling, configuring SQL mode to traditional with allow invalid dates, enforcing only full group by, increasing max allowed packet, and restarting the application.
Import large data batches into MySQL Workbench using the table data import wizard, after creating a survey schema and salary survey table with proper data types.
Create and populate the order item refunds table in MySQL Workbench using the import wizard, mapping fields and validating ten records for revenue and quality insights.
Review alter table for adding and removing columns, and update for setting record values, then examine cardinality and primary and foreign key relationships.
Create a products table with id, product name, and launch time to track a new product and link it to other tables as the business evolves.
Add the product_id column to the order_items table using an alter table statement in MySQL Workbench. The assignment focuses on adding the column, with future population planned.
Explore how to map a primary key to a foreign key between order items and products in MySQL Workbench, using product ID to reference the products primary key.
Understand database replication between a master and replica, enabling backup and a read-only reporting replica. Compare row-based and statement-based replication, including asynchronous behavior and auditability.
Learn to create a formal backup and recovery plan for Maven Bear Builders, covering data risks, master replication, and using MySQL dump for structure and data.
Explore trigger basics in MySQL to automate updates, such as after insert on purchases for each row updating inventory by item id, keeping inventory and purchases in sync.
Explore solving an assignment by creating an orders table that rolls up order items into an order summary, using group by, min, sum, and case for primary product id.
Create a trigger to automatically update the orders table when new order items are inserted, summarizing order items into order level data, and use replace into to avoid duplicates.
Create an automated orders trigger that updates the orders table whenever new items are inserted into order items, using replace into with a where order_id = new.order_id.
SQL and MySQL are powerful tools for managing and analyzing relational databases, and a skill that every analyst and BI professional should have in the arsenal.
In this course, you'll take your database administration skills to the next level, expanding into advanced SQL database administration & analytics concepts like replication, automation, and database security.
We'll start by introducing the course structure, installing MySQL Community and Workbench, and reviewing key database administration (DBA) tasks; creating and editing schemas & tables, inserting and deleting records, and reviewing the key principles of normalized databases. From there we'll work through more advanced concepts like replication, backup and recovery, and learn how to leverage automation via stored procedures, triggers, and scheduled events.
Throughout the course, you'll be playing the role of Lead Database Administrator for an e-commerce startup, and learn how to build and populate an entire database from the ground up using real-world projects and assignments.
COURSE OUTLINE:
SQL Intro & MySQL Setup
For students who haven't completed one of our other SQL courses, we'll demonstrate exactly how to download and install the tools that we'll need to access MySQL, including MySQL Community Server & MySQL Workbench. We'll share download guides for both Mac & PC, and run our first piece of SQL code to generate the project database that we'll analyze throughout the course.
Importing Data to the Database
We'll quickly review some basic concepts like creating, inserting, and deleting records. Then we'll learn how to tackle large data imports with ease, using the table data import wizard. We'll be using this handy tool throughout the course. You will construct and populate a database from the ground up as the business grows, just like a real DBA as part of the course project.
Altering, Updating & Mapping Keys
We'll briefly review critical concepts like altering tables and updating records, discuss the ins and outs of primary and foreign keys, and from there you'll jump right into your assignments and quizzes for this section.
Replication, Backup & Recovery
Here we'll introduce the critical DBA concepts of replication, backup and recovery. We'll discuss the various benefits of replication, different methods of backing up your databases, and you'll learn how to restore your data should the need arise. This is getting into some pretty serious stuff!
***MID-COURSE PROJECT
You will need all of the skills you've learned so far to complete this hands on mid-course project. You'll help your CEO by enhancing the data structure to accommodate changing business needs, and insert new data into various places within your database.
Trigger Automation
Here we'll dive into one of the most powerful automation tools you'll use as a DBA...triggers! You'll learn how you can create triggers to look for changes in the database via create, update, and delete statements, and then automatically enact changes on one of more of your tables. Triggers will be your best friend as a DBA, and can be extremely handy for Analysts to understand as well.
Creating Views
Sometimes you don't need to create a table, and a view (aka "a virtual table) is a better option. We'll walk through what views are, how you create them, and some of the major benefits of using views in certain situations.
The EER Diagram Editor
One of the best tools at your disposal for understanding your database and communicating its structure to others in your organization is leveraging EER Diagrams. We'll review some of the basics that we discussed in the Beginner course, and we'll also learn how to use the EER Diagram Editor to reverse engineer your schema, which is an extremely handy tool!
Stored Procedures & Scheduled Events
Next, we'll dive deeper into automation by learning how to create stored procedures and scheduled events. If you liked triggers, you're going to love these! You can use stored procedures to simplify your processes, make your code more modular and easier to understand, and centralize certain parts of complex queries that you can leverage throughout your organization. Scheduled events will allow you to run one-time or recurring processes on your database, which you can schedule on whatever cadence you want. These are really fun!
Automating Data from Website Activity
Here we'll be talking about the different types of data businesses typically track from their website activity, including traffic source data, on-site behavior, product purchases, and more. We'll discuss the various methods used to capture the various data types, and discuss the DBA's role in partnering with Engineering to make sure this is all working as it should.
Database Security
In the last section before the final project, we'll discuss some of the most common types of database security threats you should be aware of as a DBA, as well as security best practices to mitigate your risk. Again, we'll discuss the DBA's role in the organization, how a DBA will partner with Engineering here, and who typically owns what.
***FINAL COURSE PROJECT
This hands-on project will test all of your DBA skills. You will need to alter tables, import lots of data, design an optimal structure for an entirely new set of tables for a new business initiative, create an EER Diagram describing your new tables, and then you'll actually create them. After that, you'll need to create a stored procedure and a view, which will both used for reporting on the new data the company will be collecting. Finally, you'll need to come up with a comprehensive security plan to make sure your organization is aware of threats and following best practices. I know this sounds like a lot, but at this point you'll be ready for it!
IMPORTANT NOTE: This course does NOT go deep on data exploration and database analysis. Our goal here is to focus on building, altering, and maintaining SQL/MySQL databases using MySQL and MySQL Workbench (we cover data analysis in-depth in separate courses).
______________________________
Enroll today and get LIFETIME access to:
8 hours of high-quality video
Downloadable MySQL ebook and cheat sheets
Quizzes and homework assignments
Mid-course and Final SQL projects
30-day money-back guarantee
If you're looking for a unique and engaging way to develop advanced MySQL database administration skills, this is the course for you.
Happy administering!
-John (Lead SQL Instructor & MySQL Expert, Maven Analytics)
__________
Looking for our full course library? Search "Maven Analytics" to browse our full collection of Excel, Power BI, SQL, Tableau, Python, Alteryx & Machine Learning courses!
See why John is one of the TOP-RATED SQL/MySQL Instructors on Udemy:
"I totally loved this course! Everything was easy to understand, but it moved at a fast enough pace that I never got bored. I learned SO much about MySQL and had fun doing it. In fact, at the end of the day I didn't want to stop learning -- I wanted to keep charging on to the next lesson!"
- Ann S.
"This is an excellent advanced course! I've taken multiple SQL courses from Maven Analytics and recommend them all. The best part of this course is the detail they included by building a real world e-commerce database. It's much easier to grasp the concepts when you can see how they're literally applied to scenarios and outcomes as opposed to just theory. Great work!"
- Dan S.
"John's deep understanding of SQL and database analysis and ability to explain those tools is really unmatched. I've taken other SQL and MySQL courses and tried reading books, but this course is by far the most effective. Excited to see more courses from John!"
- Steven M.