Digital Point Forums
iKobo

Go Back   Digital Point Forums > Design & Development > Databases
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Nov 3rd 2009, 10:41 am
Monica Owen Monica Owen is offline
Banned
 
Join Date: Apr 2009
Posts: 31
Monica Owen is on a distinguished road
Unhappy Simple help need: WP Database from different Server

I would like to have domain and files from one server and only the wordpress database from another server.

When I changed the wp-config.php with Database username and password.
It showing error establishing the database.

What should I put in Host Name: instead of "localhost" ?


Please help me.

Regards,
Owen
Reply With Quote
  #2  
Old Nov 3rd 2009, 10:43 am
chandan123's Avatar
chandan123 chandan123 is online now
^.^
 
Join Date: Dec 2007
Location: india.org.in
Posts: 7,350
chandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond repute
u created a new db in new host ? u need to import that db to new host first

also u need to update user , database name , password in wp-config.php no need to change localhost
Reply With Quote
  #3  
Old Nov 3rd 2009, 10:51 am
Monica Owen Monica Owen is offline
Banned
 
Join Date: Apr 2009
Posts: 31
Monica Owen is on a distinguished road
no, I would like to run the database from different server. Instead of local host I tested with my IP of the existing database server. That too showing error.
Reply With Quote
  #4  
Old Nov 3rd 2009, 10:55 am
chandan123's Avatar
chandan123 chandan123 is online now
^.^
 
Join Date: Dec 2007
Location: india.org.in
Posts: 7,350
chandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond repute
Quote:
Originally Posted by Monica Owen View Post
no, I would like to run the database from different server server. Instead of local host I tested with my IP of the existing database server. That too showing error.
some hosts block access db via ips so u need to look permissions first
Reply With Quote
  #5  
Old Nov 3rd 2009, 10:57 am
Monica Owen Monica Owen is offline
Banned
 
Join Date: Apr 2009
Posts: 31
Monica Owen is on a distinguished road
How to check that ? Should I ask our hosts to enable that permission, or can we check from cpanel ?
Reply With Quote
  #6  
Old Nov 3rd 2009, 11:10 am
chandan123's Avatar
chandan123 chandan123 is online now
^.^
 
Join Date: Dec 2007
Location: india.org.in
Posts: 7,350
chandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond reputechandan123 has a reputation beyond repute
Quote:
Originally Posted by Monica Owen View Post
How to check that ? Should I ask our hosts to enable that permission, or can we check from cpanel ?
i think in cpanel db link u can see i remember such option because i was trying to add access from other hosts for db last time
Reply With Quote
  #7  
Old Nov 3rd 2009, 11:14 am
Monica Owen Monica Owen is offline
Banned
 
Join Date: Apr 2009
Posts: 31
Monica Owen is on a distinguished road
When we create USER for database, we'll give all access for the user. But I'm not sure how this will work for other server access. Let me ask our hosts.
Reply With Quote
  #8  
Old Nov 3rd 2009, 3:39 pm
leprakhauns leprakhauns is offline
Peon
 
Join Date: Jul 2008
Posts: 9
leprakhauns is on a distinguished road
Your going to need to allow offsite connections going to your MySQL database.
Reply With Quote
  #9  
Old Nov 3rd 2009, 6:14 pm
kacangijo kacangijo is offline
Hand of A'dal
 
Join Date: May 2009
Posts: 302
kacangijo is on a distinguished road
I think you should consult this to your hosting support. Not all hosting allow this kind of tricks
__________________
Make Better Car and grab the Loan Consolidation
Reply With Quote
  #10  
Old Nov 4th 2009, 4:59 pm
Nevo Nevo is offline
Peon
 
Join Date: Aug 2008
Posts: 24
Nevo is on a distinguished road
You have to config cPanel (if your using linux) to allow Remote MYSQL.


Just a question, but why would you want a WP DB to be 3rd Party... Its so small, why not have it on the hosting where the site is hosted?
Reply With Quote
  #11  
Old Nov 4th 2009, 8:55 pm
thewebhostingdir's Avatar
thewebhostingdir thewebhostingdir is offline
Starcaller
 
Join Date: Sep 2006
Location: RJT, IN
Posts: 3,437
thewebhostingdir is just really nicethewebhostingdir is just really nicethewebhostingdir is just really nicethewebhostingdir is just really nice
You will have to add the remote IP address of your database server first from the cPanel --> MySQL --> Enter the IP address in the Access Host section and click on Add Host. You can do this if your cpanel theme is set to x2

If your cPanel theme is set to x3 then you can add remote IP address of your database server from the cPanel --> Remote MySQL --> Enter the IP address of the remote database server and click on Add Host.

Once you add the IP address of Remote host then you will have to change the host name to your IP address in your configuration file, username, password and database.
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting Directory
Reply With Quote
  #12  
Old Nov 5th 2009, 2:17 am
Monica Owen Monica Owen is offline
Banned
 
Join Date: Apr 2009
Posts: 31
Monica Owen is on a distinguished road
Quote:
Originally Posted by Nevo View Post
You have to config cPanel (if your using linux) to allow Remote MYSQL.


Just a question, but why would you want a WP DB to be 3rd Party... Its so small, why not have it on the hosting where the site is hosted?
i wanted to have a Big database of files for all my websites in a single space.

Quote:
Originally Posted by thewebhostingdir View Post
You will have to add the remote IP address of your database server first from the cPanel --> MySQL --> Enter the IP address in the Access Host section and click on Add Host. You can do this if your cpanel theme is set to x2

If your cPanel theme is set to x3 then you can add remote IP address of your database server from the cPanel --> Remote MySQL --> Enter the IP address of the remote database server and click on Add Host.

Once you add the IP address of Remote host then you will have to change the host name to your IP address in your configuration file, username, password and database.
I did that, and received Error establishing the Database. I contacted HostGator Hosting support, they also couldn't find any solution
Reply With Quote
Reply

Bookmarks

Tags
wordpress database move, wp database

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring a database from server to server jc@ukzone.com MySQL 4 Jun 19th 2008 9:49 am
Help with very simple server code Blink JavaScript 0 Dec 28th 2007 4:14 pm
How to Connect to database on a server using VBScript located on different server? sagargemini Programming 1 Jul 31st 2007 9:36 am
Transfer mysql database server to server PinoyIto MySQL 2 Nov 30th 2006 12:42 am
IIS server, connection to offsite database server Hazzardusa ASP 9 Aug 24th 2005 4:13 am


All times are GMT -8. The time now is 6:17 am.