Installing Your Database Environment — MySQL and SQL Server Express Setup Guide

UPI Study › Courses › Database Programming › Free lessons › Lesson 1.7 Free with a free account

Installing Your Database Environment — MySQL and SQL Server Express Setup Guide

Database Programming · Chapter 1: Getting Started with Databases and SQL SetupSection 1.7 · lesson 7 of 7610 min · free with a free account

← SQL Command Essentials: The Must-Know StatementsNext lesson: Making Data Clean: Normalization Rules in SQL →

A free account plays all of Chapter 1 and 3 more lessons of Database Programming. Create a free account →

Earn 3 college credits for Database ProgrammingRecommended for credit by NCCRS · Computer Science 381 · self-paced · one payment, lifetime access

In this lesson

Set up MySQL and SQL Server Express, then verify your practice data.

  • Distinguish the database server from client tools such as Workbench and SSMS
  • Install and configure MySQL Community Server and SQL Server Express on Windows
  • Connect using the correct host, port, instance name, and authentication
  • Verify the environment with version queries, row counts, and known records

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (1,113 words). Read along, or search it.

Opening Problem

Client Installed, but No Server

Leo opens an editor, but cannot connect. Installing a client does not necessarily install or start its server. The server stores data and answers requests. The client tool sends statements; both programs can run on the same computer. Follow the Windows setup routes, then verify sample data. Runnable checks here use SQLite, separately from the vendor instructions.

Platform Check

Official Downloads and Supported Systems

Use official downloads. Check the server and client requirements separately. SQL Server Express needs a supported x sixty-four environment. On a Mac, use an approved remote server; Apple-silicon container emulation is unsupported. SSMS runs on Windows. Choose MySQL packages matching your platform and architecture. On Windows, install updates, restart, and use an administrator account. Check memory, storage, and prerequisites.

Requirements

Express Limits and SSMS Requirements

SQL Server Express has engine limits, shown here. They differ from requirements for a complete workstation. SSMS needs four gigabytes of memory minimum, with sixteen recommended. Express setup needs six gigabytes of free storage; SSMS needs more. SQL Server 2025 Express is free, with a fifty-gigabyte limit per database; SQL Server 2022 Express and earlier allow ten gigabytes. Note the processor and buffer-pool limits too. Check current requirements. An Arm-compatible client does not make the database engine Arm-compatible.

MySQL Download

Choosing an LTS Release and MSI

For MySQL, open Community Server downloads. Choose a supported long-term-support release, called LTS; avoid Early Access. The guide covers nine point seven LTS; eight point four is also supported. Check the current selector. On Windows, download the MSI. Install the required Visual C plus plus twenty nineteen redistributable, then run it. Older MySQL Installer guides concern eight point zero. It entered Sustaining Support, rather than receiving current regular fixes.

MySQL Configurator

Ports, Root Password, and Windows Service

The MSI installs MySQL Configurator. Complete configuration before starting the server; choose Development for personal practice. Keep the classic connection port, thirty-three oh six. The separate X Protocol port is thirty-three oh six oh; they serve different interfaces. Set and securely save the root password. Root is the MySQL administrator; add application accounts later. Keep Windows service configuration, choose startup behavior, and apply with Execute. A Windows service runs in the background.

MySQL Workbench

Creating a Saved Connection

Download compatible Workbench separately, with its prerequisites. It needs a running server. Create a labeled connection, with the displayed host, classic port, and root account. Test Connection asks for your password. For local-only practice, avoid unnecessary inbound firewall access. Use the configured classic port in Workbench. Open the saved connection. It records endpoint and sign-in details, separately from stored data.

SQL Server Express

Installation Types and Authentication Modes

Download SQL Server Express from Microsoft. Basic installs standard features quickly; Custom exposes choices such as the instance name and authentication mode. Download Media saves files for later. Accept the license, complete checks, and restart when requested. Windows Authentication uses your Windows identity. Keep it for local learning, and grant your account database administrator access when prompted. Mixed Mode also allows SQL Server logins, such as sa. Those require separately configured credentials.

SSMS

Connecting to the SQLEXPRESS Instance

Record the instance name, normally Sequel Express. An instance is one running SQL Server copy. Install SSMS separately from Microsoft. Its installer opens Visual Studio Installer; a separate Visual Studio installation is unnecessary. Choose Database Engine in SSMS. Enter localhost, backslash, Sequel Express, then select Windows Authentication. Connect to the actual installed name. Default and named instances are different targets.

Networking

Ports, Named Instances, and Certificates

A port is a numbered network endpoint. MySQL commonly uses its classic port; SQL Server's default instance commonly uses fourteen thirty-three. Named SQL Server instances can use dynamic ports. Network connections still need appropriate discovery and configuration. Local Express can use shared memory. Remote networking is unnecessary for this local exercise. An untrusted-certificate error in isolated local practice can use trust-server-certificate. Shared servers require proper certificate validation.

Version Check

Confirming Which Server Answers

In Workbench, run select version, with parentheses. Execute the current statement to identify the MySQL server. In SSMS, open New Query: select at at version. Execute with F five to identify the engine. These are non-run listings here. Your actual version output must match your installed server. Command-line clients are mysql and sqlcmd, with matching authentication options. In Microsoft tools, go submits a batch.

Quick Check

What a Smoke Test Proves

Here is a SQLite smoke test, before loading sample tables. Predict what a successful result would establish. If it succeeds, which conclusion is justified? Read the alternatives, then pause, and decide.

Answer Explained

A Test Proves Only What It Ran

Quoted text was returned as one value. Run it, and the actual result is shop, under the status heading. This test proves neither vendor installation, sample tables, nor account permissions. A successful test proves only what it exercised. Separate engine checks from data-loading checks.

Loading Data

Loading the Shop Sample Database

The sample database is shop: customers, products, orders, and order items. Use the loader matching your database engine. First create a fresh empty shop database, with create database shop. The matching loaders use it, without dropping anything. A reset script that drops shop destroys existing work. Inspect loader headers before running them. Open the matching file, clear text selection, and execute the whole file. Refresh the object browser afterward.

SQLite Bootstrap

Creating the Local SQLite Copy

This separate SQLite bootstrap supplies the same fictional data. The visible section defines customers; later sections supply products and orders. Run once in a fresh practice folder. The shell opens shop dot D B and reads the complete file. This creates local SQLite data. A separate query file verifies the import.

Verification

Counting Rows in Each Sample Table

Count star counts records. This file labels a count from each sample table. Run it. The actual counts are six customers, eight products, six orders, and ten order items, matching our baseline. A connection alone could not prove this. Also inspect known records and relationships; counts are not a complete integrity audit.

Troubleshooting

Service, Then Endpoint, Then Identity

For connection failures, check the service first. Next, verify host, instance name, and port. Then check authentication. Recover a forgotten MySQL root password using the documented procedure, preserving data. A missing mysql command needs PATH or its full path. A port conflict needs matching server and client changes. For loader failures, read the first error and check the dialect. If successful tables look missing, refresh the browser.

Quick Check

Products with Fewer Than Five in Stock

Select product name and stock, keeping only products with fewer than five in stock. Sample rows appear in the script comments. Which pair returns? Compare each stock count, then pause, and predict.

Answer Explained

Reading Lamp with Four in Stock

Reading Lamp, four in stock. The real query returns that pair, confirming the filter matches the loaded stock values. The other pairs have eight and twelve in stock, so the filter excludes them. A known-record query tests more than row counts. Together, engine and data checks verify the practice environment.

Key Takeaways

Install, Connect, Load, and Verify

Install the server and client as separate components, using supported official packages. Record the endpoint, instance, and authentication details. Start the service, connect, and run a suitable engine check. Load the matching sample file in a fresh practice database, then verify counts and known records. Troubleshoot from service to endpoint to identity, and refresh the browser after successful imports.

About Database Programming at UPI Study

Database Programming (Computer Science 381) is a self-paced online course of 76 video lessons in 12 chapters, from database applications, SQL setup, schema planning and normalization to keys and constraints, data types, filtering and sorting, joins, subqueries, views, indexes, ROLLUP and PIVOT, regular expressions and database security. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Database Fundamentals vs Database Programming

Why take it here

Why students take Database Programming with UPI Study

Write the SQL behind every appDatabase Programming teaches SQL in MySQL and SQL Server side by side: designing and normalizing tables, keys and constraints, data types, inserting, updating and deleting rows, filtering, grouping, joins, subqueries, views, indexes, transactions, and protecting data from SQL injection. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Database Programming carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Installing Your Database Environment — MySQL and SQL Server Express Setup Guide

Why can't my SQL client connect after installation?
A client tool such as MySQL Workbench or SSMS does not necessarily install or start the database server it connects to. The server stores data and answers requests, while the client sends statements. Check that the server service is running first, then verify the host, instance name, and port, and finally check the account and password. If loaded tables seem missing, refresh the object browser.
How do you connect to SQL Server Express in SSMS?
Choose Database Engine, enter localhost\SQLEXPRESS as the server name, and select Windows Authentication. SQLEXPRESS is the usual instance name for an Express installation, but use the name your setup actually recorded, because default and named instances are different targets. If an isolated local practice connection fails with an untrusted-certificate error, the trust server certificate option can help, but shared servers need proper certificate validation.
What ports do MySQL and SQL Server use by default?
MySQL's classic protocol commonly uses port 3306, and a SQL Server default instance commonly uses port 1433. MySQL's separate X Protocol uses port 33060. Named SQL Server instances, such as an Express instance, can use dynamic ports, so network clients may need discovery or extra configuration. A purely local practice setup can skip remote networking and avoid opening unnecessary inbound firewall access.
How can you check which database server version is installed?
Run SELECT VERSION(); in MySQL or SELECT @@VERSION; in SQL Server to make the connected server identify itself. The output should match the server you installed. A version check proves the connection works, but not that sample data loaded correctly. After loading data, count the rows in each table and query a known record to confirm the expected values.

About the Database Programming course

How many college credits is Database Programming?
Database Programming (Computer Science 381) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Database Programming cost and what is included?
$250, paid once, with lifetime access: all 76 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Database Programming take?
It is self-paced with no deadlines. The 76 lessons total about 11 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Database Programming.

76 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Database Programming
3 credits · NCCRS
Enroll →