🔥 Don't miss the discount! Up to 20% off on plans — the offer ends tonight --:--:--
🔒 Fixed price forever The price you get today applies to all future renewals
Hosting
🌐 Web Hosting 💼 Business Hosting ⚡ VPS Hosting 🔧 WordPress Maintenance
Services
🎨 Web Design (WordPress) 💻 Custom Build 🛒 E-Shop Development 🏦 Banking Integration 🧩 Plugins
Solutions
💻 All Solutions 🏦 Banking Modules ⚙️ Dynamica CRM/ERP
Company
📁 Projects 📝 Blog ❓ FAQ 📩 Contact
Language:
Theme
👤 Client area
30-day money-back guarantee
NVMe — up to 10x faster
🛡️ 24/7 DDoS protection
🔒 Free SSL
🔄 Free migration
📞 Support in Macedonian and English
🏆 Listed Host 2026 · WHTop.com
4.8/5 on Trustpilot
🔁 99.9% Uptime guarantee
30-day money-back guarantee
NVMe — up to 10x faster
🛡️ 24/7 DDoS protection
🔒 Free SSL
🔄 Free migration
📞 Support in Macedonian and English
🏆 Listed Host 2026 · WHTop.com
4.8/5 on Trustpilot
🔁 99.9% Uptime guarantee
WordPress

Error establishing a database connection — what it means and how to fix it

Instead of a site — one sentence on a white background. It looks like everything is lost, but your data is there: WordPress simply cannot reach the database. Four causes, by frequency.

1. Wrong details in wp-config.php (most common)

Open wp-config.php via cPanel → File Manager. There are four lines: DB_NAME, DB_USER, DB_PASSWORD, DB_HOST. Compare them with cPanel → MySQL Databases. The classic scenario: someone changed the database user password and wp-config.php stayed old. DB_HOST on most hosts (ours included) is localhost.

2. A corrupted database

If admin says the database needs repair: add the line enabling WP_ALLOW_REPAIR to wp-config.php, then open yourdomain.mk/wp-admin/maint/repair.php → Repair Database. Important: delete that line right after — the page works without login!

3. An overloaded server

If the site spins or dies at peak times, the database may be refusing new connections. On cheap hosting that is daily life; the fix is more resources or a VPS.

4. The user has no privileges

After a manual move: the database user is not assigned to the database. cPanel → MySQL Databases → Add User To Database → ALL PRIVILEGES.

Before anything else

Back up the database (cPanel → phpMyAdmin → Export) before changing anything. And do not test a new database name on the live site — ask first.

With us this is usually solved with one look at wp-config.php — call before you experiment.

Stuck site? Write to us →

🚀 Ready for fast and secure hosting?

ArkaHosting offers NVMe hosting with free SSL, DDoS protection and support in Macedonian and English.

View plans →
30-day money-back guarantee
NVMe — up to 10x faster
🛡️ 24/7 DDoS protection
🔒 Free SSL
🔄 Free migration
📞 Support in Macedonian and English
🏆 Listed Host 2026 · WHTop.com
4.8/5 on Trustpilot
🔁 99.9% Uptime guarantee
💳 Payment as agreed
30-day money-back guarantee
NVMe — up to 10x faster
🛡️ 24/7 DDoS protection
🔒 Free SSL
🔄 Free migration
📞 Support in Macedonian and English
🏆 Listed Host 2026 · WHTop.com
4.8/5 on Trustpilot
🔁 99.9% Uptime guarantee
💳 Payment as agreed
📞Call 💜Viber 💚WhatsApp 🎫Open ticket