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
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Database Programming.
Lesson complete
Earn the 3 college credits for Database Programming
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Making Data Clean: Normalization Rules in SQL →← 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 →
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.
Enroll now → Course details Download the syllabus All Computer Science courses Every credit course with PRO →
Why take it here
Why students take Database Programming with UPI Study
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.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →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?
How do you connect to SQL Server Express in SSMS?
What ports do MySQL and SQL Server use by default?
How can you check which database server version is installed?
About the Database Programming course
How many college credits is Database Programming?
How much does Database Programming cost and what is included?
Which universities accept UPI Study credits?
How long does Database Programming take?
How are the exams done?
How do my credits reach my college?
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
3 credits · NCCRSEnroll →