What we will do
- Create a database in Namecheap (it will start with mindsybq_)
- Create a database user (also starts with mindsybq_)
- Connect them together
- Load the tables (the "stuff" your app needs)
- Tell the app your database name, user, and password
Step 1 — Open Namecheap cPanel
1
Go to your Namecheap account and click cPanel.
2
In cPanel, find MySQL® Databases and click it.
Step 2 — Make a Database
1
In Create New Database, type market.
2
Click Create Database.
It will become mindsybq_market. That is perfect! ✅
Step 3 — Make a Database User
1
Scroll to MySQL Users → Add New User.
2
Username: type something like appuser. It will become mindsybq_appuser.
3
Password: click Generate and copy it to a safe place.
4
Click Create User.
Step 4 — Give the User Access to the Database
1
Find Add User To Database.
2
Choose your user (e.g., mindsybq_appuser) and your database (mindsybq_market).
3
Click Add → choose ALL PRIVILEGES → Make Changes.
Step 5 — Put the Tables into the Database
1
Back in cPanel, open phpMyAdmin.
2
Click your database on the left: mindsybq_market.
3
Click Import at the top.
4
Click Choose File and select this file from your project: market/database/schema_main.sql.
5
Click Go. Wait a bit. You should see a green success message.
Step 6 — Tell the App How to Connect
1
Open your file manager (cPanel File Manager) and go to your site folder.
2
Find and edit this file: market/config/database.php.
3
Make sure it looks like this:
Good: DB names and users start with mindsybq_.
Not good: Using root on shared hosting.
Not good: Using root on shared hosting.
Step 7 — Log In to Your App
1
Open your website link (your domain).
2
Use the default admin email: admin@marketingplatform.com.
3
Password is a placeholder. Change it right away inside the app settings.
Fix-It Section (If something goes wrong)
Can’t connect? Check these:
- Is DB name exactly mindsybq_market?
- Is DB user like mindsybq_appuser?
- Did you give ALL PRIVILEGES to the user?
- Password copied correctly? (No extra spaces)
You did it! 🥳
Your website should now talk to the database and be ready to go.