Topics Covered in This WordPress Tutorial:
Creating a Database, Installing WordPress.org Files
Exercise Preview

Exercise Overview
WordPress has evolved far beyond its blogging roots to become the web's most powerful and flexible Content Management System (CMS). In this exercise, we'll harness that power to build a fully dynamic website with both static pages and blog functionality. This approach gives you complete editorial control over every aspect of your site while maintaining the robust content management capabilities that have made WordPress the platform of choice for over 40% of all websites worldwide. Before we can begin crafting our site, we need to establish the foundational database that will store all of our content, user data, and configuration settings.
- To set up a database, start your server and open phpMyAdmin, as shown below:
Beyond blogging, WordPress serves as a full-fledged Content Management System for creating dynamic, editable websites with pages and blog functionality.
Mac
- Open MAMP (Hard Drive > Applications > MAMP > MAMP.app).
- The servers should start automatically. If not, click Start Servers.
- If the MAMP start page does not open automatically, click the Open WebStart page button.
- On the start page, in the nav menu, go to Tools > phpMyAdmin.
- Click the Databases tab at the top.
- In the Create database field, enter: mrp
- Click the Create button.
Mac Database Setup Process
Launch MAMP
Open MAMP application from Hard Drive > Applications > MAMP > MAMP.app and start servers
Access phpMyAdmin
Navigate to Tools > phpMyAdmin from the MAMP start page navigation menu
Create Database
Click Databases tab, enter 'mrp' in Create database field, and click Create button
Windows
- If XAMPP is not already running, navigate to C:
/xampp, then double–click xampp-control.exe and start the Apache and MySQL services. - Open your browser and go to localhost
- On the start page, in the Tools section, click phpMyAdmin.
- Click the Databases tab at the top.
- In the Create database field, enter: mrp
- Click the Create button.
Windows Database Setup Process
Start XAMPP Services
Navigate to C:/xampp, run xampp-control.exe, and start Apache and MySQL services
Open phpMyAdmin
Go to localhost in browser, then click phpMyAdmin in the Tools section
Create Database
Click Databases tab, enter 'mrp' in Create database field, and click Create button
Installing WordPress
With our database foundation in place, we're ready to deploy the WordPress core files. While we've provided a specific WordPress version for this tutorial to ensure consistency across all learners, it's worth noting that in professional environments, you should always download the latest stable release from WordPress.org. WordPress releases security updates and feature enhancements regularly, and staying current is crucial for both functionality and security. The installation process we're about to complete mirrors exactly what you'd do when launching a live site, making this exercise invaluable real-world preparation.
Navigate to the Desktop, go into the Class Files folder, then the WordPress.org Class folder.
Select the WordPress-4.1 folder and hit Cmd–C (Mac) or CTRL–C (Windows).
- Go to the htdocs folder:
- Mac: Hard Drive > Applications > MAMP > htdocs
- Windows: C: > xampp > htdocs
Hit Cmd–V (Mac) or CTRL–V (Windows) to paste the WordPress-4.1 folder.
Rename the new pasted folder mrp
File Installation Paths
| Feature | Mac | Windows |
|---|---|---|
| Source Location | Desktop/Class Files/WordPress.org Class | Desktop/Class Files/WordPress.org Class |
| Destination Path | Hard Drive/Applications/MAMP/htdocs | C:/xampp/htdocs |
| Final Folder Name | mrp | mrp |
Always download the latest WordPress version from WordPress.org for production projects to ensure security and feature updates.
Creating a Wp-config.php File
Now comes the critical step of connecting WordPress to our database through the wp-config.php file. This configuration file serves as the bridge between your WordPress installation and your MySQL database, containing essential connection parameters and security keys. Think of it as WordPress's passport—without it, the system cannot access the data it needs to function. The setup wizard we're about to use will generate this file automatically, but understanding these database credentials is essential for troubleshooting and future site management.
- Open your favorite browser and go to:
- Mac: localhost:8888/mrp
- Windows: localhost/mrp
English (United States) should be selected, so click Continue.
Click the Let's go! button at the bottom of the page.
Enter the following database information:
MacWindowsDatabase Name: mrp User Name: root Password: root Database Host: localhost Table Prefix: wp_ Database Name: mrp User Name: root Password: (leave blank for local install) Database Host: localhost Table Prefix: wp_ NOTE: These credentials are specific to your local development environment. In production environments, your hosting provider will supply unique database credentials that differ significantly from these default local settings for security purposes.
Click Submit.
Click Run the install.
For Site Title, enter: Monteith Restoration & Performance
For Username, enter: mrpAdmin
For Password, enter and re-enter: student
For Your Email, enter an email address that can be accessed for the remainder of the class. Make sure to double-check the address before submitting the form.
Uncheck Allow search engines to index this site.
Click the Install WordPress button.
Click the Log In button.
For Username, enter: mrpAdmin
For Password, enter: student
Click Log in.
Congratulations! You've successfully installed WordPress and will now be taken to the Dashboard of Monteith Restoration & Performance. This administrative interface is your command center for managing content, customizing appearance, installing plugins, and monitoring site performance. Take a moment to familiarize yourself with the navigation structure—this Dashboard will become your primary workspace as we build out the full functionality of your new WordPress-powered website.
Database Configuration by Platform
| Feature | Mac (MAMP) | Windows (XAMPP) |
|---|---|---|
| Access URL | localhost:8888/mrp | localhost/mrp |
| Username | root | root |
| Password | root | leave blank |
| Database Host | localhost | localhost |
WordPress Installation Checklist
Sets the default language for your WordPress installation
Ensures proper connection between WordPress and MySQL database
Establishes the primary site identity and branding
Creates the primary administrator account for site management
Provides secure access to the WordPress dashboard
Prevents search engines from indexing your development site
Double-check your email address during setup as it will be used for password resets and administrative notifications throughout the class.