Error establishing a database connection at http://localhost:8888/wordpress/
-
Hi there,
I’m having issues after setting up MAMP; getting “Error establishing a database connection” when visiting http://localhost:8888/wordpress/ (incidentally, getting a 404 Not Found when visiting http://localhost:8888/wp-admin/install.php directly)
I have set-up Mamp with the following preferences:
Apache Port: 8888
MySQL Port: 8889
WebServer E:\MAMP\htdocsNow, since I have set-up WordPress through Mamp & through my E: drive before; I’m not sure why it might be throwing this issue but do I need to change some parameters somewhere else in order to read E: ?
It’s the only thing I can think of!
wp-config.php snippet is as follows:
define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘root’);
define(‘DB_PASSWORD’, ‘root’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);mySQL connection parameters are:
Host: localhost
Port: 8889
User: root
Password: root& a database called wordpress has been created through myPHPadmin
the latest install of wordpress is residing locally at E:/MAMP/htdocs/wordpress
I’m stumped!!!
The topic ‘Error establishing a database connection at http://localhost:8888/wordpress/’ is closed to new replies.