联系我们
软件销售
投诉邮箱

q@xunruicms.com

后台进不去这是什么问题文件行号错误查询地址来源
方案栏目:迅睿CMS 更新时间:2020-11-21 12:14:51

后台进不去这是什么问题?


2020-04-11 18:15:12 --> mysqli_sql_exception

文件: /data/home/bxu2340860137/htdocs/dayrui/System/Database/MySQLi/Connection.php

行号: 225

错误: Connection refused

{"html":"<pre><code><span class=\"line\"><span class=\"number\">218<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\n<span class=\"line\"><span class=\"number\">219<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #767a7e; font-style: italic\">\/\/&nbsp;Clean&nbsp;sensitive&nbsp;information&nbsp;from&nbsp;errors.\n<span class=\"line\"><span class=\"number\">220<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #c7c7c7\">$msg&nbsp;<\/span><span style=\"color: #f1ce61;\">=&nbsp;<\/span><span style=\"color: #c7c7c7\">$e<\/span><span style=\"color: #f1ce61;\">-&gt;<\/span><span style=\"color: #c7c7c7\">getMessage<\/span><span style=\"color: #f1ce61;\">();\n<span class=\"line\"><span class=\"number\">221<\/span> \n<span class=\"line\"><span class=\"number\">222<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #c7c7c7\">$msg&nbsp;<\/span><span style=\"color: #f1ce61;\">=&nbsp;<\/span><span style=\"color: #c7c7c7\">str_replace<\/span><span style=\"color: #f1ce61;\">(<\/span><span style=\"color: #c7c7c7\">$this<\/span><span style=\"color: #f1ce61;\">-&gt;<\/span><span style=\"color: #c7c7c7\">username<\/span><span style=\"color: #f1ce61;\">,&nbsp;<\/span><span style=\"color: #869d6a\">'****'<\/span><span style=\"color: #f1ce61;\">,&nbsp;<\/span><span style=\"color: #c7c7c7\">$msg<\/span><span style=\"color: #f1ce61;\">);\n<span class=\"line\"><span class=\"number\">223<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #c7c7c7\">$msg&nbsp;<\/span><span style=\"color: #f1ce61;\">=&nbsp;<\/span><span style=\"color: #c7c7c7\">str_replace<\/span><span style=\"color: #f1ce61;\">(<\/span><span style=\"color: #c7c7c7\">$this<\/span><span style=\"color: #f1ce61;\">-&gt;<\/span><span style=\"color: #c7c7c7\">password<\/span><span style=\"color: #f1ce61;\">,&nbsp;<\/span><span style=\"color: #869d6a\">'****'<\/span><span style=\"color: #f1ce61;\">,&nbsp;<\/span><span style=\"color: #c7c7c7\">$msg<\/span><span style=\"color: #f1ce61;\">);\n<span class=\"line\"><span class=\"number\">224<\/span> \n<span class='line highlight'><span class='number'>225<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;\\mysqli_sql_exception($msg,&nbsp;$e-&gt;getCode(),&nbsp;$e);\n<\/span><\/span><span style=\"color: #c7c7c7\"><\/span><span style=\"color: #f1ce61;\"><\/span><span style=\"color: #c7c7c7\"><\/span><span style=\"color: #f1ce61;\"><\/span><span style=\"color: #c7c7c7\"><\/span><span style=\"color: #f1ce61;\"><\/span><span style=\"color: #c7c7c7\"><\/span><span style=\"color: #f1ce61;\"><\/span><span style=\"color: #c7c7c7\"><\/span><span style=\"color: #f1ce61;\"><span class=\"line\"><span class=\"number\">226<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n<span class=\"line\"><span class=\"number\">227<\/span> \n<span class=\"line\"><span class=\"number\">228<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<\/span><span style=\"color: #c7c7c7\">false<\/span><span style=\"color: #f1ce61;\">;\n<span class=\"line\"><span class=\"number\">229<\/span> &nbsp;&nbsp;&nbsp;&nbsp;}\n<span class=\"line\"><span class=\"number\">230<\/span> \n<span class=\"line\"><span class=\"number\">231<\/span> &nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #767a7e; font-style: italic\">\/\/--------------------------------------------------------------------\n<span class=\"line\"><span class=\"number\">232<\/span> \n<\/span><\/code><\/pre>"}

查询: 

地址: http://www.gd-hxjx.com/

来源: 

迅睿: 哈哈,数据库挂了,MySQL重启下

because: 回复@迅睿框架创始人  奇怪,mysql能连?

because: http://www.gd-hxjx.com/test.php  配置应该没问题吧

because: 用的是阿里云虚拟主机

迅睿: 这个是MySQL的原因,检查配置账号对不对

because: 找了几天终于找到问题了,阿里云的数据库地址不是127.0.0.1

若凌: ...每个虚拟主机数据库地址可能不一样的,这是常识

because: 若凌  之前一直用西部数码,新一代虚拟主机用着用着就脑残了,刚刚ping了下连接地址才知道两个不一样

相关内容