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

    (@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: https://wp-qa.com/error-establishing-a-database-connection-with-xampp)

    • This reply was modified 2 years, 6 months ago by audunmb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XAMPP install keeps getting database error’ is closed to new replies.