Error Establishing Database Connection
-
Hello, having some issues that I cannot figure out.
I am trying to get my live site into WAMP:
(not sure how important this is, but its a MU site)So far, I have:
Backed up entire site and database, then unzipped it in the C:\wamp\www folder under the file name “spanish”
Created a database in phpmyadmin, called “spanish” then loaded the original database.sql file.
After that I went to wp_options and manually changed all the URL’s to https://localhost/spanish/
I went to the wp-config and changed everything to:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘spanish’);/** 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’, ”);&
define(‘WP_DEBUG’, false);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘localhost’);
define(‘PATH_CURRENT_SITE’, ‘/spanish/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);and the .htaccess file has been tried with the original as well as the following generic:
# BULLETPROOF DEFAULT .HTACCESS
# WARNING!!! THE default.htaccess FILE DOES NOT PROTECT YOUR WEBSITE AGAINST HACKERS
# This is a standard generic htaccess file that does NOT provide any website security
# The DEFAULT .HTACCESS file should be used for testing and troubleshooting purposes only# BEGIN BPS WordPress
# CUSTOM CODE WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{HTTP_HOST} ^www\.localhost\$ [NC]
RewriteRule ^(.*)$ https://localhost/$1 [R=301,L]RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# WP REWRITE LOOP END
# END BPS WordPressObviously I am missing something… Can someone please help me sort this out?
Thank you!
Dave
- The topic ‘Error Establishing Database Connection’ is closed to new replies.