1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need Help for Wordpress

Discussion in 'WordPress' started by simplevicky1983, Mar 14, 2011.

  1. #1
    Hello everyone,

    I want to know that Is it possible to Install Wordpress on Hosting 1 and its Database on Hosting 2(Different Hosting), If it is possible Please tell me How?

    Thanks in advance feel free to ask question if you have any.

    Regards
     
    simplevicky1983, Mar 14, 2011 IP
  2. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #2
    I don't understand your question. If you are going to install Wordpress on 2 different web hosting accounts, you will need 2 MySQL databases - one on each hosting account.
     
    andrej, Mar 14, 2011 IP
  3. simplevicky1983

    simplevicky1983 Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    No I have a hosting which don't have Mysql and i have installed wordpress on that hosting and i have other hosting which have SQL facility so i want to create mysql database on that hosting now i want to connect them.
     
    simplevicky1983, Mar 14, 2011 IP
  4. Pakteck

    Pakteck Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i dont think so...
    but you can
    where u right local host
    you can change with second site adress
     
    Pakteck, Mar 14, 2011 IP
  5. simplevicky1983

    simplevicky1983 Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    Sorry I didn't get your Point
     
    simplevicky1983, Mar 14, 2011 IP
  6. Pakteck

    Pakteck Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    wp-config.php, does not exist in a downloaded copy of WordPress; you need to create it. The wp-config-sample.php file is provided as an example to work from. Advanced settings and examples are provided below.
    
    To change the wp-config.php file for your installation, you will need this information:
    
    Database Name 
    Database Name used by WordPress
    Database Username 
    Username used to access Database
    Database Password 
    Password used by Username to access Database
    Database Host 
    The hostname of your Database Server(here you write your other site adress)
    PHP:
     
    Pakteck, Mar 14, 2011 IP
  7. simplevicky1983

    simplevicky1983 Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #7
    I did that but it shows me an error of connection could not created.
     
    simplevicky1983, Mar 14, 2011 IP
  8. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #8
    You need a web hosting account with a MySQL database to run Wordpress.
     
    andrej, Mar 14, 2011 IP
  9. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #9
    Install Wordpress on the account that has SQL database.
    Keep it simple.
     
    hmansfield, Mar 14, 2011 IP
  10. tricks2

    tricks2 Active Member

    Messages:
    427
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #10
    Put the wordpress files in one hosting...

    Then create SQL Database in second hosting..

    Then Goto your site it take you to the installation page..
    Now you can enter the SQL Database and user details as in the second Hosting account
     
    tricks2, Mar 14, 2011 IP
  11. techntuts

    techntuts Member

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #11
    I dont think so this can happen. You can export the database in hosting1 and import it to hosting2...
     
    techntuts, Mar 17, 2011 IP
  12. digital design

    digital design Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    i think lots of hosting company provide free of cost word press installation.
     
    digital design, Mar 17, 2011 IP
  13. shahilroyhere

    shahilroyhere Well-Known Member

    Messages:
    189
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #13
    You can surely do this.
    There are many sites on the web who has pages in one server and database on other server.
    All you need to do is that you need to know the database server url of your second hosting account, where you can login with your DB user and password. Then just put those authentication credentials in your WordPress configuration.
    Now if you can't find the database server url, then you can set it in your hosting account which is normally private to you only, or that can be given to you by your hosting provider.
     
    shahilroyhere, Mar 18, 2011 IP
  14. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    yes it is in the config file replace local host with the database location
     
    srisen2, Mar 18, 2011 IP
  15. arunbasillal

    arunbasillal Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    This definitely can be done, but can you please tell me why you need to do this?

    Open up wp-config.php from your root folder and find define('DB_HOST', 'localhost');
    Change localhost to the hostname of the server with your database, should be the ip address of the server.

    But again, why all this trouble?
     
    arunbasillal, Mar 19, 2011 IP