Error establishing a database connection.
-
Hello,
I am having some trouble in creating a basic WordPress site on my localhost.
The wp-config.php file was not created so I created one from my wp-config-sample.php file
This produces an errorParse error: syntax error, unexpected identifier “DB_HOST”, expecting “)” in C:\xampp\htdocs\wptest\wp-config.php on line 32.
When I look at the file with notepad ++ I can see an error on line 29/** Database password */
define( ‘DB_PASSWORD’, ‘—- ); no closing ‘when I insert the ‘ and run the page I get a different error.
Error establishing a database connection.
This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at localhost could not be established. This could mean your host’s database server is down.I notice that when the database was created no tables were created.
I have had this previously and this has resolved itself later in the process.
Has anyone some suggestions how to fix this problem?Many thanks
John H- This topic was modified 11 months, 1 week ago by . Reason: moved to Localhost Installs since this is a localhost install
The page I need help with: [log in to see the link]
- The topic ‘Error establishing a database connection.’ is closed to new replies.