First of all, remove those defines. They’re for temporary emergency use only.
Fix the siteurl and home values directly in that database: https://codex.ww.wp.xz.cn/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
You’ll find phpMyAdmin in your hosting account’s control panel.
Next, check your wp-config.php file and make sure that your database username, password, and host are correct for your current hosting environment.
Thread Starter
Kruble
(@kruble)
James Huff: Thanks for the feedback. I carefully did as you suggested, changing the database values and removing the defines. Also all data in wp-config is correct.
Still getting that database error message. The sub-directory url is still functioning correctly as a site.
I might mention one thing I’ve done differently is leave the bulk of the wp site in the sub-directory and only copied the .htaccess and index.php files into the root directory, (as per codex instructions) so I’m trying to actually trying to get the site url to point to the subdirectory (or home) url.
Any thoughts appreciated.
Not being able to access the MySQL database isn’t really related to where the files are.
If you are sure that the connection details in wp-config.php are correct, contact your hosting provider to ask why your database is offline.
Thread Starter
Kruble
(@kruble)
OK, thanks…I’ll try that.
Thread Starter
Kruble
(@kruble)
I called Godaddy…they were very helpful…seems I had errantly changed the site configuration to multisite which was conflicting things.
Thanks again for your response. Marked as resolved
Thanks for letting us know what it was!