Support » Localhost Installs » XAMPP install keeps getting database error

Viewing 2 replies - 1 through 2 (of 2 total)
  • get it up an running and everything works fine, but when I do changes suddenly I get a database error. (“Error establishing a database connection”).

    What sort of “changes” do you do that trigger a database connection error?

    Thread Starter audunmb


    @gappiah Thanks for the reply. The changes were the changing theme and trying out FSE.

    Though, turns out there was something wrong in wp-config and phpmyadmin after all. The odd thing is why it worked in the first place.

    These values work for now:

    define('DB_NAME', 'wordpress');
    define('DB_USER', 'localuser');
    define('DB_PASSWORD', 'local');
    define('DB_HOST', 'localhost');

    and then making sure that user has all priveliges for that database in phpmyadmin.
    (this guide was useful:

    • This reply was modified 1 month, 1 week ago by audunmb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.