Okay perfect Rabie 👍 thanks for clarifying.
Since you’re now on Windows and not logged into your VDS (server), that’s why you can’t run those Linux commands directly.

Here’s what you should do step by step from your Windows machine:


🟢 Step 1 — Connect to Your VDS

  1. Open Command Prompt (Windows + R → type cmd).
  2. Connect to your server via SSH (replace with your real server IP): ssh rabie@YOUR_SERVER_IP It will ask for your server password.

⚡ Once you’re inside, you’ll be back in the Ubuntu terminal (like before when we installed Apache and WordPress).


🟢 Step 2 — Check Database Status

Inside your VDS, run:

sudo systemctl status mariadb

🟢 Step 3 — Fix According to Result

  • If MariaDB is stopped → sudo systemctl start mariadb sudo systemctl enable mariadb
  • If it’s running, then we test login: mysql -u igniteuser -p (Password = Riad2030@)

🟢 Step 4 — Check Your DB Exists

Still inside MySQL, run:

SHOW DATABASES;

👉 You should see your WordPress DB (example: ignitemetabo).

If it’s missing → that’s why your site is broken (we’ll need to re-create or import backup).


⚡ Right now, the “Error establishing a database connection” is ONLY because:

  1. MariaDB service is stopped
  2. Wrong DB credentials in wp-config.php
  3. Or the DB itself doesn’t exist

👉 Rabie, do you want me to write you the exact SSH command with your server IP so you can just copy-paste into your Windows CMD and get back inside your VDS?

Leave a comment