Create New Database, Configure wp-config.php, and Import WordPress
Overview
In this part, you will:
- Create a new WordPress database and user in your Thamara Cloud hosting (via Plesk or C-panel).
- Edit the wp-config.php file to connect WordPress to the new database.
- Import your old site’s data into the new database using phpMyAdmin.
This completes the migration process — after this step, your WordPress site will be fully transferred to Thamara Cloud.
Create a New Database and Database User
Create the database and user
- Log in to your Thamara Cloud Dashboard → Select your hosting service → Click "Open Cpanel Panel".
- In cPanel, go to Websites & Domains → Databases → Add Database.
- Enter a Database Name (e.g.,
wp_site). - Under Database User, click Add New Database User and fill in:
- Database Username
- Password (use a strong one)
- Click OK / Create Database to save changes.
Grant full privileges
In Thamara Plesk&cpanel, privileges are automatically assigned when you create the user.
Just make sure the checkbox “User has access to all databases” (if available) is unchecked unless needed.
For more control, you can review permissions from:
Databases → User Management → [Select User] → Permissions
You’re now ready to connect your new WordPress files to this database.
Step 4 — Edit the wp-config.php File
The The wp-config.php file tells WordPress how to connect to your database.
You must update it with your new database credentials from Thamara.
Steps
- Log in to your CPanel File Manager or connect via FTP.

- Go to your site’s root directory (usually
/httpdocsor/public_html). - Locate the file named
wp-config.php. - Right-click → Edit (or download and edit locally).
- Update the following lines with your new database details:
/** The name of the database for WordPress */ define('DB_NAME', 'your_database_name'); /** MySQL database username */ define('DB_USER', 'your_database_user'); /** MySQL database password */ define('DB_PASSWORD', 'your_secure_password'); /** MySQL hostname */ define('DB_HOST', 'localhost');
- Save the changes.
- If you edited the file locally, re-upload it to the same directory on your Thamara server.
Make sure the database name, user, and password match exactly what you created in Step 3.
Step 5 — Import Your WordPress Database
Now it’s time to restore your site’s data to the new database.
Using phpMyAdmin
- In CPanel, open Databases → Manage with phpMyAdmin.
- From the left sidebar, select the new database you created in Step 3.

- Click the Import tab (top menu).
- Click Choose File → select your
.sqlbackup (from Step 1). - Click Go to start the import process.

Once complete, you’ll see a confirmation message:
“Import has been successfully finished.”
For large databases (>10 MB)
If your The .sql file is large, use the BigDump utility or contact Thamara Support — we can assist with server-side import for faster performance.
Step 6 — Verify Your Site
After the import finishes:
- Visit your domain in the browser.
- If you see your homepage and admin login screen (
/wp-admin), migration succeeded. - If you get a database connection error, recheck your
wp-config.phpcredentials.
Pro tip: clear browser cache or flush DNS if the old site still appears.
Need help?
If you’d like Thamara Cloud to handle the migration for you or troubleshoot any issues, open a ticket from your dashboard:
https://dashboard.thamara.cloud
Updated on: 11/11/2025
Thank you!