联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
Access denied for user '****'@'116.62.178.211' (using password: YES)
类型:迅睿CMS 更新时间:2020-11-17 21:27:26

这个是什么错误

mysqli_sql_exception #1045

Access denied for user '****'@'116.62.178.211' (using password: YES)


SYSTEMPATH/Database/MySQLi/Connection.php at line 225

218         {219             // Clean sensitive information from errors.220             $msg = $e->getMessage();221 222             $msg = str_replace($this->username, '****', $msg);223             $msg = str_replace($this->password, '****', $msg);224 225             throw new \mysqli_sql_exception($msg, $e->getCode(), $e);226         }227 228         return false;229     }230 231     //--------------------------------------------------------------------232
  1. SYSTEMPATH/Database/BaseConnection.php : 377   —  CodeIgniter\Database\MySQLi\Connection->connect ( arguments )


    370         }371 372         //--------------------------------------------------------------------373 374         $this->connectTime = microtime(true);375 376         // Connect to the database and set the connection ID377         $this->connID = $this->connect($this->pConnect);378 379         // No connection resource? Check if there is a failover else throw an error380         if (! $this->connID)381         {382             // Check if there is a failover set383             if (! empty($this->failover) && is_array($this->failover))384             {
  2. SYSTEMPATH/Database/BaseConnection.php : 643   —  CodeIgniter\Database\BaseConnection->initialize ()

    636      *637      * @return BaseResult|Query|false638      */639     public function query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = 'CodeIgniter\\Database\\Query')640     {641         if (empty($this->connID))642         {643             $this->initialize();644         }645 646         $resultClass = str_replace('Connection', 'Result', get_class($this));647         /**648          * @var Query $query649          */650         $query = new $queryClass($this);
  3. SYSTEMPATH/Database/BaseBuilder.php : 1819   —  CodeIgniter\Database\BaseConnection->query ( arguments )


    1812         if (! is_null($limit))1813         {1814             $this->limit($limit, $offset);1815         }1816 1817         $result = $this->testMode1818             ? $this->getCompiledSelect($reset)1819             : $this->db->query($this->compileSelect(), $this->binds, false);1820 1821         if ($reset === true)1822         {1823             $this->resetSelect();1824 1825             // Clear our binds so we don't eat up memory1826             $this->binds = [];
  4. FCPATH/Fcms/Model/Member.php : 221   —  CodeIgniter\Database\BaseBuilder->get ()

    214 215         $uid = intval($uid);216         if ($uid && $uid == $this->member['id']) {217             return $this->member;218         }219 220         if ($uid) {221             $data = $this->db->table('member')->where('id', $uid)->get()->getRowArray();222         } elseif ($name) {223             $data = $this->db->table('member')->where('username', $name)->get()->getRowArray();224             $uid = (int)$data['id'];225         }226 227         if (!$data) {228             return null;
  5. FCPATH/Fcms/Core/Phpcmf.php : 235   —  Phpcmf\Model\Member->get_member ( arguments )


    228             && \Phpcmf\Service::L('input')->request('appsecret')) {229             define('IS_API_HTTP', 1);230             $this->_api_auth();231             \Phpcmf\Service::M('http', 'httpapi')->check_auth();232         } else {233             define('IS_API_HTTP', 0);234             $this->uid = (int)\Phpcmf\Service::M('member')->member_uid();235             $this->member = \Phpcmf\Service::M('member')->get_member($this->uid);236             if (!$this->member) {237                 $this->uid = 0;238             }239             // 验证账号cookie的有效性240             if ($this->member && !\Phpcmf\Service::M('member')->check_member_cookie($this->member)) {241                 $this->uid = 0;242                 $this->member = [];
  6. SYSTEMPATH/CodeIgniter.php : 882   —  Phpcmf\Common->__construct ()

    875     /**876      * Instantiates the controller class.877      *878      * @return mixed879      */880     protected function createController()881     {882         $class = new $this->controller();883         $class->initController($this->request, $this->response, Services::logger());884 885         $this->benchmark->stop('controller_constructor');886 887         return $class;888     }889
  7. SYSTEMPATH/CodeIgniter.php : 393   —  CodeIgniter\CodeIgniter->createController ()

    386         }387 388         $returned = $this->startController();389 390         // Closure controller has run in startController().391         if (! is_callable($this->controller))392         {393             $controller = $this->createController();394 395             // Is there a "post_controller_constructor" event?396             Events::trigger('post_controller_constructor');397 398             $returned = $this->runController($controller);399         }400         else
  8. SYSTEMPATH/CodeIgniter.php : 306   —  CodeIgniter\CodeIgniter->handleRequest ( arguments )


    299 300             $this->response->pretend($this->useSafeOutput)->send();301             $this->callExit(EXIT_SUCCESS);302         }303 304         try305         {306             return $this->handleRequest($routes, $cacheConfig, $returnResponse);307         }308         catch (RedirectException $e)309         {310             $logger = Services::logger();311             $logger->info('REDIRECTED ROUTE at ' . $e->getMessage());312 313             // If the route is a 'redirect' route, it throws
  9. FCPATH/Fcms/Init.php : 330   —  CodeIgniter\CodeIgniter->run ()

    323  * the application run, and does all of the dirty work to get324  * the pieces all working together.325  */326 327 328 $app = new \Phpcmf\Extend\CodeIgniter(config(\Config\App::class));329 $app->initialize();330 $app->run();
  10. require /data/home/hyu7770190001/htdocs/index.php   —   require()


回帖
  • #1楼    迅睿框架创始人
    2020-06-30 22:29:40
    Chrome 0
    数据库密码不正确,参考文档:《数据库配置文件》
    满意答案
  • 浮生半日
    #2楼    浮生半日
    2020-06-30 23:15:40
    Chrome 0
    数据库没对
  • 坤哥
    #3楼    坤哥
    2020-06-30 23:19:28
    Chrome 0
    这是数据库挂了吧
  • tao
    #4楼    tao
    2020-11-17 21:27:26
    Chrome 0
    迅睿框架创始人:谢谢!!!!!!!!!