Ograničeno trajanje - from HRK5,25/mj
04
DANA
09
SATI
58
MINUTA
32
SEKUNDI
Započnite
×

Baza znanja

Pronađite članak o značajkama, provjerite upute,
i ostale tehničke informacije vezane za za hosting usluge Hostingera.

How to fix "Error establishing a database connection"

Modificirano dana:
database wordpress error establishing connection mysql sql

If you ever see the 'Error establishing a database connection' message, this usually means that your website failed to connect to the database due to incorrect database configuration settings. For example, WordPress's database configuration file is wp-config.php, located in your WordPress installation's root (main) folder.

The most common causes are:

- Incorrect MySQL hostname used.
Make sure you are using the correct hostname. Hostinger does not use localhost, make sure you find out your accounts MySQL hostname.

- Incorrect MySQL username / password or database name.
Make sure to check the database name, username and password that your configuration file is using, it has to be identical to the information in your MySQL details page. Try to avoid using any special characters, such as "',~{]{]@", if you are having issues connecting to your database. Try changing your database password if you are unsure if you are using the correct password.

For further troubleshooting of this issue, consider checking out these tutorials:

https://www.hostinger.com/tutorials/wordpress/wordpress-error-establishing-database-connection
https://www.hostinger.com/tutorials/wordpress/how-to-find-out-Wordpress-database-name

  • Jednostavni Alat za izradu stranica
  • 99.9% Uptime garancija
  • 24/7 Podrška
  • Powerful Control Panel
  • 30-dnevno Jamstvo povrata novca
Limited Time Special Offer!
Počevši od
HRK
5
25
/mj
Uštedi 90%
Započnite