大杯具-空间迁移/转移后出现无法访问-提示如下:

2016-07-07 15:15 来源:www.chinab4c.com 作者:ecshop专家



原来是香港的空间,一切正常。但由于某些原因,要转回到国内空间。要空间商协助了转移,但现在出

现大杯具了。程序迁移前后没有做任何的修改。 杯具如下:

前台访问出现:
  1. Notice: Undefined variable: db_name in /www/users/xxx.com/includes/init.php on line 103

  2. Notice: Undefined variable: prefix in /www/users/xxx.com/includes/init.php on line 103

  3. Notice: Undefined variable: db_host in /www/users/xxx.com/includes/init.php on line 110

  4. Notice: Undefined variable: db_user in /www/users/xxx.com/includes/init.php on line 110

  5. Notice: Undefined variable: db_pass in /www/users/xxx.com/includes/init.php on line 110

  6. Notice: Undefined variable: db_name in /www/users/xxx.com/includes/init.php on line 110
  7. MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] =>

  8. Array ( [sql] => SELECT userid, adminid, user_name, user_rank, discount, email, data, expiry

  9. FROM ``.`sessi**` WHERE sesskey = '72657bde07eed9f63ddf6bca5c456b53' ) [2] => Array (

  10. [error] => Incorrect table name 'sessi**' ) [3] => Array ( [errno] => 1103 ) )
复制代码


后台访问出现:
  1. Warning: require(/www/users/xxx.com/asp/includes/init.phpincludes/inc_c**tant.php)

  2. [function.require]: failed to open stream: No such file or directory in

  3. /www/users/xxx.com/asp/includes/init.php on line 82

  4. Fatal error: require() [function.require]: Failed opening required

  5. '/www/users/xxx.com/asp/includes/init.phpincludes/inc_c**tant.php'

  6. (include_path='.:ROOT_PATH') in /www/users/xxx.com/asp/includes/init.php on line 82
复制代码

回答:
重新装一下就可以解决了,记得备份好之前的数据库

这个 备份好数据就可以吗?



空间全部文件是空间商协助直接搬过来的,现在就是找不到哪个地方出问题了。

目前已自己恢复了,分享如下:
1、如果是空间搬家的,空间商只帮你把东西全部收拾一下,丢过去另一个空间,所产生的一切访问不了、打不开之类的情况,统称为“非空间引起,是你的程序有问题”。 这种情况你是求助无门的。
2、切记切记,有任何大变动前,一定要为你的程序备份,其中最少包括(程序正常运行时的所有文件备份,数据库经常备份)
3、如果转移后,只要你的数据库的数据还正常的话,但程序检查不出来哪里出问题,而且死活就访问不了网站的话,,,这时候,死马当活马医了,把备份下来的全部文件直接往上导吧。
------------------------------------------------------------------------------------------------------------

没有什么技术分享可言了,我的就是这样弄好的了。杯具。