Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions

Reply
 
Thread Tools
Cannot change server - Please help! Details »»
Cannot change server - Please help!
Version: , by livethedream livethedream is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-07-2007 Last Update: Never Installs: 0
 
No support by the author.

Okay, this may be pretty drawn out so I will only post a summary and if any kind member takes up the gauntlet and asks questions I'll answer and explain further

(Saves me typing out a novel for nothing )

Right, we set up a forum etc. on a shared server and now want to move it to a dedicated server. We have a server setup and ready to go.

The sql database is currently held on our hosts 'sql server' and is different to the shared server that we have our website on.

I ftp'd the htdocs down from shared server.

I backed up the sql database using mysql administrator on my pc.

On the dedicated server (DS) I setup up a database and a user etc.
I also set up a user account and gave it a website.

I ftp'd the site up to this users htdocs and it seems fine.
I restored with mysql administrator the backup from the Shared server (SS) to the DS.

If I run http://<ip-address>/info.php it returns a page of info.
If I run http://<ip-address>/index.php it returns the website on the SS (config.php unchanged at this point)

From the above I take it that the website bit is in the right place and functioning.

When I edit config.php to point to the DS database I get a VB error page that says Databse error...The <domain> database has encountered an error.

I have checked with putty that there are indeed files pertaining to a sql database, I have even managed to issue a show tables sql command through my sql administrator and got back a list of tables which makes me think that the database is ok.

Any help or pointers that you can give will be gratefully received! !

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-07-2007, 01:24 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of mysql if on the old server?
What version of mysql is on the new server?

What command did you use to back up this old database in ssh?

This sometimes can make a difference and cause issues.
Reply With Quote
  #3  
Old 10-07-2007, 01:28 PM
livethedream livethedream is offline
 
Join Date: Oct 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll have to check the mysql versions but what I can say for now is that I did not use ssh to back up the sql d/b. I used mysql administrator from my PC.

We don't have ssh access to the server that has the D/B on it, the shared server hosting company has it on their sql server.

HTH

Oh, and thanks VERY much for the quick reply and interest
Reply With Quote
  #4  
Old 10-07-2007, 01:34 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was this on a windows box?

if it was on a linux box have your hosting company run this to back up your database and then have them provide you a link to download it.

You could fight for hours trying to get it working when you backup with one program and restore with another.

Check our this thread for some great information.

http://www.vbulletin.com/forum/showt...moving+servers
Reply With Quote
  #5  
Old 10-07-2007, 01:36 PM
livethedream livethedream is offline
 
Join Date: Oct 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R1lover View Post
What version of mysql if on the old server?
What version of mysql is on the new server?

What command did you use to back up this old database in ssh?

This sometimes can make a difference and cause issues.

5.0.22 via tcp/ip on the new server
5.0.22-log via tcp/ip on the current site

--------------- Added at 15:37 ---------------

Quote:
Originally Posted by R1lover View Post
Was this on a windows box?

if it was on a linux box have your hosting company run this to back up your database and then have them provide you a link to download it.

You could fight for hours trying to get it working when you backup with one program and restore with another.

Check our this thread for some great information.

http://www.vbulletin.com/forum/showt...moving+servers

Both Linux...

Backed up and restored with the same program - mysql administrator...

Thanx

--------------- Added at 17:44 ---------------

Hi,

The tools listed for backing up the database seem to be scripts that need copying to the server that hosts the database files. Is this the case?

If it is, I can't use them as I have said previously that I don't have ssh access to that server.


Can anyone help as this problem means that we can't migrate and currently are paying for two hosts!
Reply With Quote
  #6  
Old 10-07-2007, 04:04 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post the "COMPLETE" DB error msg after you change the config.php file.
Reply With Quote
  #7  
Old 10-07-2007, 04:11 PM
livethedream livethedream is offline
 
Join Date: Oct 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi and thanks for the reply...

The page comes up with a 'V' logo top left and this message with it...
---Quote---

Database error
The <domain name> database has encountered a problem.

--------------------------------------------------------------------------------

Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the xxx.xxx.xxx.xxx home page, then try to open another page.
Click the Back button to try another link.

The xxx.xxx.xxx.xxx forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
---End Quote---

The domain mentioned in the error is just a domain on the server. The IP address in the error is the correct ip for this server.
Reply With Quote
  #8  
Old 10-07-2007, 07:10 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to view the page source and post that - the error is not contained in the visible text.
Reply With Quote
  #9  
Old 10-07-2007, 10:06 PM
livethedream livethedream is offline
 
Join Date: Oct 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops! Yes I can see how that might help



Between the dashed line is the source (In red are bits I've changed for obvious reasons)

-------------------------------------------------



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>domainnameonnewserver Database Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
<!--
body { background-color: white; color: black; }
#container { width: 400px; }
#message { width: 400px; color: black; background-color: #FFFFCC; }
#bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; }
.bodytext { font: 8pt/11pt verdana, arial, sans-serif; }
a:link { font: 8pt/11pt verdana, arial, sans-serif; color: red; }
a:visited { font: 8pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
-->
</style>
</head>
<body>
<table cellpadding="3" cellspacing="5" id="container">
<tr>
<td><img src="http://www.domainame.co.uk/image.php?type=dberror" alt="Database Error" width="48" height="48" /></td>
<td id="bodytitle" width="100%">Database error</td>
</tr>
<tr>
<td class="bodytext" colspan="2">The domainnameonnewserver database has encountered a problem.</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td class="bodytext" colspan="2">
Please try the following:
<ul>
<li>Load the page again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</li>
<li>Open the <a href="/">newserveriaddress</a> home page, then try to open another page.</li>
<li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
</ul>
</td>
</tr>
<tr>
<td class="bodytext" colspan="2">The newserveripaddress forum technical staff have been notified of the error, though you may <a href="mailto:emailaddress@admin.co.uk">contact them</a> if the problem persists.</td>
</tr>
<tr>
<td class="bodytext" colspan="2">&nbsp;<br />We apologise for any inconvenience.</td>
</tr>
</table>


<!--
Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic,
connections.start,user.usergroupid, user.displaygroupid, user.options, user.username,
groupa.opentag as opentaga, groupa.closetag as closetaga,
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM flashchat_connections as connections
LEFT JOIN flashchat_rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN user as user ON(connections.userid = user.userid)
LEFT JOIN usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start;

MySQL Error : Table 'databasename,sameonbothservers.flashchat_connections' doesn't exist
Error Number : 1146
Date : Sunday, October 7th 2007 @ 09:11:45 PM
Script : http://newserveripaddress/
Referrer :
IP Address : myclientpcipaddress
Username : Unregistered
Classname : vB_Database
-->


</body>
</html>



----------------------------------------

Two things, the entry in green is the actual domainname that is currently pointing to the old server and will point to the new server when we fix it, I can't imagine where this error is getting it from, the config.php does not mention it.



Also, the stuff at the bottom appears to be from flashchat, I can't see why that would be here wither.



Thanks for the help
Reply With Quote
  #10  
Old 10-07-2007, 10:18 PM
R1lover's Avatar
R1lover R1lover is offline
 
Join Date: Apr 2006
Location: Northern Ca
Posts: 428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disable flashchat and try it again...

If this works then re-install flashchat if you must have it.

--------------- Added at 16:19 ---------------

This is because it's still in the settings somewhere that the domain is the old domain, probably the admin panel under vBulletin Settings.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04250 seconds
  • Memory Usage 2,300KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete