define(‘DB_HOST’, ‘localhost’); How do I change this?
I have a weird problem. My blog has been running for years just fine, but as of 2 days ago, the account of the ISP on which it runs is blocked of access. I get a Error 403 Access denied message, and even if I try to get in there via FTP I’m denied access.
On the other hand, I can still use my login/PW on the SQL site using phpmyadmin and I can see the 13 tables there.
So, since I have other sites on the same ISP (and which don’t have this blocked access problem, I thought I’d temporarily run my blog from one of them.
I’ve FTP’d to my alternate site all the WP stuff (of which I have a copy on my HDD).
Since my ‘old’ site’s database is accessible, rather then export it and import it on the new site’s database, I thought it was maybe possible to invoke the old site’s database.
This is where, while looking at the wp_config.php file I thought this might be possible, but maybe I am missing the boat completely.
Is this define(‘DB_HOST’, ‘localhost’); line where you can specify that you want to access a database located elsewhere than the one assigned to the site by the ISP?
And, if so, what is the syntax I should use in wp_config.php to tell it to go look for the old database?
Do I make any sense, lol?
- The topic ‘define(‘DB_HOST’, ‘localhost’); How do I change this?’ is closed to new replies.