XAMPP / MAMP Can’t Find Database
-
Hello forum – Might anyone be able to help me with a local host issue? My browser can’t find the database when I’ve been setting up a local host.
I imported a database (15.5Mb roughly from an existing website) and then tried to bring it up in my browser but it didn’t work.
I’ve tried with both XAMPP and MAMP and both attempts were unsuccessful.
Info/things I’ve tried up to this point:
*2011 MacBook Air
*I followed the information at https://www.wpbeginner.com/wp-tutorials/how-to-create-a-local-wordpress-site-using-xampp/ as closely as I possibly could when setting up XAMPP.
*I followed the information at https://skillcrush.com/2015/04/14/install-wordpress-mac/ when setting up the MAMP configuration.In both cases, I was unsuccessful and ended up with a similar problem, which was that my browser (Google Chrome) could not find a database successfully.
*In my wp-config.php file, I edited code to look like this:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘STW’);/** 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’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);Any suggestions or ideas? Things I might be missing?
I have seen ideas about changing/altering ports, but I don’t know if this is my issue. I have tried 8080 on XAMPP and 8888 and 8889 on MAMP…tried to play around with them a bit. No luck making it work.
I would be grateful for any ideas or suggestions. Thanks for taking time to look this over!
Stephen
- The topic ‘XAMPP / MAMP Can’t Find Database’ is closed to new replies.