Replies: 0
After several weeks of not working on our site, I attempted to login, but received the following error:
HTTP 505
“We were able to connect to the database server (which means your username and password is okay) but not able to select the wp database.
Are you sure it exists?
Does the user root have permission to use the wp database?
On some systems the name of your database is prefixed with your username, so it would be like username_wp. Could that be the problem?
If you don’t know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.”
The site is locally hosted and we use MAMP.
My config file points to a database called “woc wordpress” as shown below:
define(‘DB_NAME’, ‘woc wordpress’);
/** MySQL database username */
define(‘DB_USER’, ‘root’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘root’);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);
I’m not able to log into WordPress through wp-admin. I went into phpMyAdmin via MAMP, but there was no database listed with that name. There was an empty database with the name “wordpress” and I was able change the config file to point to that database instead so I could log into WordPress, but since there were no tables in that database, all of the many, many pages we had created are not there.
My best guess is that the database with all of the content (“woc wordpress”) somehow disappeared. We ran some recovery software on the computer running MAMP, but had no luck. We did not have a back-up of the database files. Any other suggestions to try to recover this database or what might have caused it to happen?