Category: Hosting, cPanel & Site Administration
Audience: Clients of Thomas McKee Website Design & SEO Solutions who need to view or adjust website files and databases within cPanel.
Goal: Teach clients how to safely use File Manager, manage databases, and understand phpMyAdmin access without breaking their website or risking data loss.
Every website runs on a collection of files and databases that work together to display pages, store content, and process information.
Inside cPanel, tools like File Manager, MySQL Databases, and phpMyAdmin allow you to access these components directly. However, they should be used carefully — even a small mistake (like deleting one configuration line) can take your website offline.
At Thomas McKee Website Design & SEO Solutions, we encourage our clients to use these tools for observation and light maintenance, while leaving deeper tasks (edits, migrations, cleanups) to our support team.
This article explains how each tool works, what you can safely do, and when to contact us for help.
A standard website has two main parts:
| Component | Description |
|---|---|
| Files | Contain your website’s visible structure — pages, themes, plugins, and media. |
| Database | Stores your dynamic content — posts, settings, users, and configurations. |
These two must stay synchronized for your site to work properly.
The File Manager in cPanel lets you view and manage all files stored in your hosting account through a browser — no need for FTP or command-line access.
It’s ideal for:
Uploading or downloading files
Editing configuration files
Managing images or documents
Creating backups of single files
Log into cPanel.
Scroll to the Files section.
Click File Manager.
You’ll see your file structure in a tree view on the left and details on the right.
| Folder | Function |
|---|---|
/public_html/ | Your website’s root directory. Everything here is public. |
/mail/ | Stores email data (do not edit). |
/etc/ | System and configuration files (read-only for most users). |
Double-click a folder to open it.
Use the breadcrumb bar at the top to move backward.
Right-click files or folders for context actions (Edit, Download, Rename, Delete).
Use the Search Bar to locate files quickly by name.
Click the column headers (e.g., Last Modified, Size) to sort.
This helps when checking which plugin or file was recently updated.
Click Upload at the top.
Select the destination folder (usually /public_html/).
Choose your file and confirm.
Right-click → Download to save a local copy before editing.
Right-click a file → Edit or Code Edit.
Make small, careful adjustments (like updating text or image paths).
Click Save Changes.
Click +File or +Folder.
Use lowercase names without spaces.
Only delete files you are 100% sure of.
Avoid removing .htaccess, wp-config.php, or any folder in /wp-content/.
| File | Purpose | Caution |
|---|---|---|
.htaccess | Handles redirects, caching, and security rules. | Don’t edit unless instructed. |
wp-config.php | Connects WordPress to its database. | Never delete or rename. |
index.php / index.html | Homepage entry file. | Avoid replacing it. |
error_log | Logs PHP or plugin errors. | Safe to view, delete if large. |
/wp-content/ | Holds your themes, plugins, and uploads. | Safe to browse; edit only when directed. |
| Type | Recommended Permission |
|---|---|
| Directories | 755 |
| Files | 644 |
| Config Files (e.g., wp-config.php) | 600 |
To view or adjust permissions:
Right-click the file → Permissions.
Adjust if directed by our support team only.
Incorrect permissions can break WordPress or cause 403 errors.
Before changing or deleting anything:
Right-click the file or folder.
Click Compress.
Download the .zip backup to your computer.
If something goes wrong, you can easily restore the compressed version.
The database stores:
Page content, posts, and settings
User information
Plugin and theme configurations
WordPress websites connect to a MySQL/MariaDB database using credentials stored in wp-config.php.
Log into cPanel.
Scroll to Databases.
Choose one of the following:
MySQL® Databases — to create or delete databases/users.
phpMyAdmin — to view or manage data directly.
You won’t normally need this unless directed by our team.
To create one:
Go to MySQL Databases.
Under Create New Database, enter a name.
Under MySQL Users, create a username and password.
Assign the user to the database → check All Privileges → Make Changes.
We’ll use these credentials when installing a new WordPress site or migrating content.
phpMyAdmin provides a visual interface for viewing and editing database content.
You can:
View tables and data
Export or import databases
Optimize or repair tables
⚠️ Use caution. phpMyAdmin changes take effect immediately and cannot be undone without a backup.
Log in to cPanel → phpMyAdmin.
Select your database in the left sidebar.
Click a table (e.g., wp_posts or wp_users).
Click Browse to view contents.
Select your database.
Click Export.
Choose Quick → SQL.
Click Go.
Save the file to your computer.
This is the safest way to create a backup before edits or migrations.
If WordPress shows “Error establishing a database connection”:
In phpMyAdmin, check all tables.
At the bottom, choose Repair Table.
Reload your site to verify resolution.
❌ Do not delete or empty any table unless explicitly instructed.
❌ Do not manually edit rows in wp_options, wp_users, or wp_posts unless you know their structure.
❌ Do not import large SQL files without confirming compatibility.
❌ Never rename database tables — it will break your WordPress installation.
If you’re unsure, export the database first and contact us for help.
Occasionally, databases accumulate overhead from deleted posts or plugin activity.
To safely optimize:
Log in to phpMyAdmin.
Select your database.
Check all tables.
From the dropdown menu, select Optimize Table.
This removes unnecessary data and improves performance.
Sometimes you’ll reference both tools:
You may edit wp-config.php to confirm your database name, username, and password.
You might upload a new configuration file after a site migration.
Always:
Confirm file and database names match.
Create a backup of both before changes.
Contact us if anything doesn’t line up — incorrect settings cause “Error establishing database connection.”
| Issue | Likely Cause | Solution |
|---|---|---|
| Website down after edit | Deleted or changed key file | Restore from JetBackup |
| Database connection error | Wrong credentials in wp-config.php | Update or contact support |
| phpMyAdmin timeout | Large export/import | Use compressed SQL or contact us |
| Permission denied | Incorrect file permissions | Reset via cPanel or support |
| Missing images | Wrong file path | Verify in File Manager or media folder |
Reach out to Thomas McKee Website Design & SEO Solutions immediately if:
You accidentally deleted files or folders.
Your site shows “Database Connection Error.”
You see corrupted data or foreign entries in phpMyAdmin.
A plugin update caused layout or login issues.
You suspect malware or hacked files.
We can restore your site from backup or correct file/database mismatches safely.
✅ Access File Manager via cPanel only — not via FTP unless instructed.
✅ Always back up before edits or deletions.
✅ Never modify .htaccess or wp-config.php without guidance.
✅ Export your database before any major changes.
✅ Check your SSL padlock and backups regularly.
✅ Contact support for database or security concerns.
Your hosting tools give you powerful access to your website’s inner workings — but with great power comes great responsibility.
By understanding File Manager, databases, and phpMyAdmin, you can monitor and maintain your website confidently without taking unnecessary risks.
At Thomas McKee Website Design & SEO Solutions, we encourage our clients to explore, learn, and grow — while we provide the technical safety net that ensures every change can be reversed and every website stays secure.
If you ever feel unsure, reach out. We’ll handle the heavy lifting — quickly, safely, and professionally.