Results 1 to 12 of 12

Thread: Moving website (inc. SQL) between two servers.

  1. #1
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts

    Moving website (inc. SQL) between two servers.

    I've had a blog for years now running on a system called B2Evolution. It's been running on a machine at my house since I put it up (about two and a half years ago) although I want to move it to a proper server now.

    I copied across the htdocs folder, and then did an SQL dump from mysql, then imported the file into mysql on the new server.

    I updated the username and passwords inside B2Evo, and when I try to access it I get a

    MySQL error!

    Error establishing a database connection!
    Are you sure you have typed the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    I presume this is something built into B2Evo as the sql server doesn't have any activity when I try to access the page.

    Any help would be muchly appreciated

    The machine I used to run it on was running WindowsXP, mySQL 4.0.21-nt, and Apache 1.3 (not sure exacly which version). The machine its moving to runs Windows 2003, mySQL 4.1, and Apache 1.3 (IIRC).
    Last edited by unrealrocks; 29-01-2006 at 07:26 PM.

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  2. #2
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    your home database will be localhost or a local IP. You may have updated the username and pass but did you make sure the database hostname was set ?

  3. #3
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts
    Well the whole thing is moving to another machine so it's still localhost as its on the same machine. Cheers for the idea though.

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  4. #4
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    Did you create the same username/password on the new MySQL server?.. thats a common mistake that people make. Thats what B2Evo is pointing to at least.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  5. #5
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts
    The username and password is different although I changed it in the configuration file of B2Evo, does it still need to be the same as it was installed like that?

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  6. #6
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    There's a MySQL error somewhere, maybe mysql-nt isn't listening in on 127.0.0.1, try the IP address of the NIC on that server, and/or make sure that mysql has started in the first place. you could try running this test script:

    Code:
    <?php
    $host="localhost"
    $user="root"
    $pass="pass"
    $dbase="b2evo"
    
    $link = mysql_connect($host,$user,$pass);
      if(!$link) {
        die("Error! Unable to connect to MySQL server at: ".$host);
    }
    echo "<p>Connected to MySQL Server: $host </p>\n";
    
    $db_selected = mysql_select_db($dbase,$link);
    if(!$db_selected) {
      die("Error! Could not select MySQL database: $dbase");
    }
    echo "<p>Selected MySQL database: $dbase";
    ?>
    Experiment with the variables up top and see if PHP is having problems with MySQL
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  7. #7
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Also try installing query browser and opening up a connection

    http://dev.mysql.com/downloads/query-browser/1.1.html

  8. #8
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts
    Well after a bit of fiddling with usernames and passwords it now will talk to the database, the blog choosing page comes up (which shows its talking to the database, and there isn't an SQL error anymore) ... but now I get an 'Error 500' from Apache when I try to access any of the blogs, will go through the logs in a min but apart from being 'An internal error' what exacly does error 500 mean? lol

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  9. #9
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts
    OK - just had a look in the apache logs ...

    [Tue Jan 31 01:07:52 2006] [error] [client 210.55.248.134] Premature end of script headers: c:/apache/php/php.exe
    This error seems to happen alot (like 2MB of error log with pretty much just this error in). Dunno if this helps?

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  10. #10
    Spodes Henchman unrealrocks's Avatar
    Join Date
    Aug 2003
    Location
    Nottingham UK
    Posts
    2,390
    Thanks
    3
    Thanked
    2 times in 2 posts
    Tried updating to the latest version of Apache - same problem.

    G4 PowerMac - Tiger 10.4 - 512MB RAM
    MacBook - 2Ghz - 1GB RAM - 120GB HDD

    Rotel RC970BX | DBX DriveRack |2x Rotel RB850
    B&W DM640i | Velodyne 1512

  11. #11
    Senior Member
    Join Date
    Nov 2005
    Posts
    501
    Thanks
    0
    Thanked
    0 times in 0 posts

  12. #12
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    Quote Originally Posted by unrealrocks
    [Tue Jan 31 01:07:52 2006] [error] [client 210.55.248.134] Premature end of script headers: c:/apache/php/php.exe
    You should reallyyyy use the SAPI php module on apache, its much more stable, mature, and secure than the CLI PHP binary. Its a pita to be honest, it might even fix your problem.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vice city multiplayer (MTA) servers
    By blockers in forum Gaming
    Replies: 9
    Last Post: 19-09-2007, 09:47 PM
  2. Automating Website Backup?
    By Aaron in forum Software
    Replies: 12
    Last Post: 31-08-2005, 01:55 PM
  3. Website / Name Purchasing and Hosting (Help)
    By muddyfox470 in forum Software
    Replies: 8
    Last Post: 08-07-2005, 03:27 PM
  4. BBC culls Cult website
    By Steve in forum HEXUS News
    Replies: 0
    Last Post: 01-07-2005, 01:47 PM
  5. SQL Server Connection string?
    By Stoo in forum Software
    Replies: 7
    Last Post: 04-05-2005, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •