It worked before… "Error establishing a database connection"
-
Hey there,
I’ve been using the localhost for WordPress, but left it alone for about a month I think.When I wanted to look at it again, I started up Xampp.
Apache said it didn’t had access to the right port.
Looked it up, alright. In ” Apache (httpd.config) ” I changed the two
“Listen 80” to “Listen 8080”.
Restarted Apache, it was working. MySQL is working too.Alright, let’s go to our good ol’ https://localhost:8080/wordpress/ .
I get “Error establishing a database connection” …
I’ve been looking around, but nothing seems to fix this.Before all this, when going to https://localhost:8080/wordpress/wp-admin/ I didn’t use “localhost” or “admin” or whatever as username, do I need to change it in the wp-config.php ?
I currently have this set:
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8mb4’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);Thank you !
- The topic ‘It worked before… "Error establishing a database connection"’ is closed to new replies.