Webmaster Forum

Go Back   Webmaster Forum > Blogging > Blogging Forum

Blogging Forum Discuss general blogging issues here - design, integration, posting, trackbacks, ETC. Also discuss blogs you like.


Reply
 
LinkBack Thread Tools Display Modes
Old 01-13-2008, 11:43 AM   #1 (permalink)
Contributing Member
 
Join Date: 12-16-07
Posts: 407
iTrader: 0 / 0%
Cars-blog is on the right pathCars-blog is on the right pathCars-blog is on the right path
How do you connect WordPress to a remote database?

Does anyone know how to connect a WordPress installation to a remote MySQL database? My host uses a separate database server so the code

define('DB_HOST', 'localhost');

in the wp-config.php file doesn't work. I've tried putting the url in place of 'localhost' as well as the IP address as in

define('DB_HOST', 'http://db.domain.com:port');

and

define('DB_HOST', 'http://xxx.xxx.xxx.xxx:port');

where xxx.xxx.xxx.xxx is the IP address.

Both give me a Error connection to database message.

Usingthe IP address without 'http://' as in

define('DB_HOST', 'xxx.xxx.xxx.xxx:port');

gives me a CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Any hep will be greatly appreciated?
__________________
Want more power for your car? Then visit Modified Cars for car mods and guides.
The Home Garden site.
Cars-blog is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-13-2008, 06:53 PM   #2 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
I'd really like to know the answer to this question too, as I get more and more interested in this WP phenomenon.

So, if there's someone out there who knows the answer, please share
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-13-2008, 10:43 PM   #3 (permalink)
Banned
 
Join Date: 01-13-08
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

cheap seo is liked by many
i also wanted to know pls
cheap seo is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-14-2008, 02:27 AM   #4 (permalink)
v7n Mentor
 
Join Date: 07-24-06
Posts: 691
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
These settings are correct:
Code:
define('DB_HOST', 'xxx.xxx.xxx.xxx:port'); // or define('DB_HOST', 'db.domain.com:port');
Also:
- make sure, that DB server is accessible from the outer world
- make sure, that your DB user is allowed to connect from your web server
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-14-2008, 03:51 AM   #5 (permalink)
Contributing Member
 
Join Date: 12-16-07
Posts: 407
iTrader: 0 / 0%
Cars-blog is on the right pathCars-blog is on the right pathCars-blog is on the right path
Thanks for the input guys. I've smacked the installation down to WordPRess 2.3.1 and it works perfectly now with
Code:
define('DB_HOST', 'xxx.xxx.xxx.xxx:port');
Looks like the problem was with WordPress 2.3.2
__________________
Want more power for your car? Then visit Modified Cars for car mods and guides.
The Home Garden site.
Cars-blog is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Blogging > Blogging Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to connect mabel01 Tech Support Forum 11 10-02-2007 03:08 AM
How to Connect Two Systems? dreamsubmitting Tech Support Forum 4 04-23-2007 09:56 AM
[ASP.NET] How do you connect to a database? Izzmo Coding Forum 4 11-13-2006 12:14 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:54 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.