改掉ecshop这句“ECSHOP info: Can\'t Connect MySQL Server(

2016-09-07 22:03 来源:www.chinab4c.com 作者:ecshop专家

使用国外空间mysql总是链接超时。出现:ECSHOP info: Can't Connect MySQL Server(localhost:3306)! 

若想把ecshop这句
ECSHOP info: Can't Connect MySQL Server(localhost:3306)! 
换成“服务器繁忙,请刷新”

办法:

找到include/cls_mysql.php 代码

  1.     echo "<b>ECSHOP info</b>: $message\\n\\n<br /><br />";
  2.             //print('<a href="http://faq.comsenz.com/?type=mysql&dberrno=2003&dberror=Can%27t%20connect%20to%20MySQL%20server%20on" target="_blank">http://faq.comsenz.com/</a>');
  3.         }
  4.         else
  5.         {
  6.             echo "<b>MySQL server error report:";
  7.             print_r($this->error_message);
  8.             //echo "<br /><br /><a href='http://faq.comsenz.com/?type=mysql&dberrno=" . $this->error_message[3]['errno'] . "&dberror=" . urlencode($this->error_message[2]['error']) . "' target='_blank'>http://faq.comsenz.com/</a>";

改下ecshop info : 之后的message部分。

(责任编辑:chinab4c)