
install mysql by downloading a bundle that includes apache, php, and mysql; start all servers and log in as root with no password to begin exploring mysql.
View existing databases, create a new database named course, and switch to it; then show tables to see an empty set, noting information_schema and performance_schema and not deleting test.
Create a simple names table with first and last text columns, insert a row like John Doe, and retrieve data with select queries using where filters.
Understand MySQL data types: numeric (tinyint to bigint), floating (float, double) and decimal, character (char, varchar, binary, blob), and date types (date, datetime, timestamp) with not null.
Create a names table with an auto incrementing primary key id (mediumint, not null, unique). Insert sample names and query by name or id to see the key in action.
Describe table demonstrates how to create a small contacts database with names and addresses using a sql file. It explains table structure, primary keys, autoincrement, and the name_id relation.
Drop and recreate database, switch to it, create names and addresses tables, then insert test data and use insert into ... select to link IDs via names using source.
Learn how to use select queries to read data from tables, choosing specific or all columns, and apply where, like, order by, and limit clauses.
Learn how to use the select statement to query the names table, apply where and like filters, order results, and limit rows for precise results.
Master the MySQL update query to modify values in one or more columns across rows, using update table set column=value pairs with an optional where clause.
Explore how to perform arithmetic in MySQL queries and updates, using plus, minus, times, divide, modulus, and integer division, with table creation, insertion, updates, and aliases.
Learn to use distinct to list unique last names, count rows, and apply group by to tally occurrences by last name in a names table, with sorting options.
Explore relational database concepts in MySQL by examining one-to-one, one-to-many, and many-to-many relationships, and learn how primary keys, foreign keys, and join tables connect data across tables.
Join the names and addresses tables on names.id (the primary key) and addresses.name_id (the foreign key) to show first names, last names, and their addresses in a one-to-many relationship.
Learn how to delete rows from a table using the delete query, including the importance of a where clause and how auto-incremented IDs are not reused.
Explore the four types of joins in MySQL—inner, left, right, and full cartesian joins—using example tables Names and Colors, and learn how join syntax and data setup affect results.
Explore inner, left, right, and full joins in MySQL with practical examples that link names and colors using on clauses and key matching.
Create and use a view in MySQL to save a complex left join query, name it favorite colors, and query or drop it as needed.
Drop and recreate a database demonstrating a many-to-many relationship between names and items. Create names and items tables and a names_items join table with name_id and item_id to map ownership.
Demonstrates a many-to-many relationship using a three-table join (names, items, join table) with inner joins, aliases, and a view to query paired names and items.
MySQL is a general purpose relational database management system (RDBMS) used mainly to provide a back-end database for web applications. In this course, we'll introduce the concepts of relational database management systems in general, and how they relate to MySQL in particular.
Unlike traditional courses that concentrate mainly on theory, we'll take a practical “how-to” approach to working with data. Here's what yyou'll learn:
Creating databases and tables
Adding data to a table with INSERT
Reading a table with SELECT
How to use WHERE to filter data
Using ORDER BY to sort data
JOINs and how to use them to read from multiple tables
Changing data in a table with UPDATE
The DELETE query: removing one or more rows of data from a table
Using a text file to load a database schema
These topics and many more will be covered. The concentration in this course is on MySQL itself… not on how to use it to for any particular purpose. But this course makes a great introduction to our upcoming course about web databases using php and MySQL. So why wait… sign up today!