Webmaster Forum

Advertise Here   Sell Your Website   V7N Directory
Go Back   Webmaster Forum > Blogging > Blogging Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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: 85
iTrader: 0 / 0%
Latest Blog:
None

Cars-blog is liked by many
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?
__________________
Visit my Modified Cars and Home Garden sites.
Cars-blog is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-13-2008, 06:53 PM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,851
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
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
__________________
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: 33
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)
Contributing Member
 
Join Date: 07-24-06
Posts: 571
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 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 online now  
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: 85
iTrader: 0 / 0%
Latest Blog:
None

Cars-blog is liked by many
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
__________________
Visit my Modified Cars and Home Garden sites.
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

vB 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 Computers & Internet 11 10-02-2007 02:08 AM
How to Connect Two Systems? dreamsubmitting Computers & Internet 4 04-23-2007 08:56 AM
[ASP.NET] How do you connect to a database? Izzmo Coding Forum 4 11-13-2006 12:14 PM
FTP Connect Issue Brian V7 Inc Support Forum 11 07-29-2006 05:37 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:35 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.