Error establishing a database connection
-
I have installed WordPress a few times now, as I’ve realized things I’ve done wrong and re-installed to fix them, so there may be some old cruft floating around but I don’t think so.
My environment:
Windows 2008
IIS 7.5
php 5.3.3
MySQL 5.1.49I used WPI to install WordPress, following the instructions here:
http://codex.ww.wp.xz.cn/Installing_WordPress#Easy_5_Minute_Wordpress_Installation_on_WindowsEverything goes well until the very end when I am supposed to click the “launch” link. My browser opens to index.php but I get an error saying “Error establishing a database connection”
wp-config.php:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘news’);/** MySQL database username */
define(‘DB_USER’, ‘newsadmin’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘secret’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);From the command line,
mysql -h localhost -u newsadmin -p news
Enter password: secret
This works and I get logged in to mysql, however “show tables” shows that no tables have yet been created.phpmyadmin shows the ‘news’ database, but with no tables.
The topic ‘Error establishing a database connection’ is closed to new replies.