迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
出現(xiàn)這樣的。數(shù)庫庫鏈接都沒有錯(cuò)~~換個(gè)地方用就這樣子了
把錯(cuò)誤日志內(nèi)容發(fā)來看看,方法是:http://help.xunruicms.com/658.html
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
遷移服務(wù)器?
是的。遷移服務(wù)器。應(yīng)該是空間
<?php defined('SYSTEMPATH') || exit('No direct script access allowed'); ?>
CRITICAL - 2020-04-23 08:55:31 --> Access denied for user '****'@'localhost' to database 'yf'
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(377): CodeIgniter\Database\MySQLi\Connection->connect(false)
#1 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(643): CodeIgniter\Database\BaseConnection->initialize()
#2 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseBuilder.php(1819): CodeIgniter\Database\BaseConnection->query('SELECT `passwor...', Array, false)
#3 D:\phpstudy_pro\yf1\dayrui\Fcms\Model\Auth.php(122): CodeIgniter\Database\BaseBuilder->get()
#4 D:\phpstudy_pro\yf1\dayrui\Core\Controllers\Admin\Login.php(38): Phpcmf\Model\Auth->login('admin', 'admin')
#5 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(910): Phpcmf\Controllers\Admin\Login->index()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(398): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Admin\Login))
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(306): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 08:58:13 --> Access denied for user '****'@'localhost' to database 'yf'
CRITICAL - 2020-04-23 09:02:30 --> Cache unable to write to {0}
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
CRITICAL - 2020-04-23 09:02:32 --> Cache unable to write to {0}
CRITICAL - 2020-04-23 09:02:33 --> Cache unable to write to {0}
CRITICAL - 2020-04-23 09:02:36 --> Cache unable to write to {0}
CRITICAL - 2020-04-23 09:02:37 --> Cache unable to write to {0}
CRITICAL - 2020-04-23 09:02:41 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php
CRITICAL - 2020-04-23 09:02:44 --> Cache unable to write to {0}
配置問題錯(cuò)誤
參考文檔:《數(shù)據(jù)庫配置文件》
看下數(shù)據(jù)庫配置文件是:
config/database.php
把錯(cuò)誤日志內(nèi)容發(fā)來看看,方法是:http://help.xunruicms.com/658.html
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
遷移服務(wù)器?
是的。遷移服務(wù)器。應(yīng)該是空間
是的。遷移服務(wù)器。應(yīng)該是空間
<?php defined('SYSTEMPATH') || exit('No direct script access allowed'); ?>
CRITICAL - 2020-04-23 08:55:31 --> Access denied for user '****'@'localhost' to database 'yf'
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(377): CodeIgniter\Database\MySQLi\Connection->connect(false)
#1 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(643): CodeIgniter\Database\BaseConnection->initialize()
#2 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseBuilder.php(1819): CodeIgniter\Database\BaseConnection->query('SELECT `passwor...', Array, false)
#3 D:\phpstudy_pro\yf1\dayrui\Fcms\Model\Auth.php(122): CodeIgniter\Database\BaseBuilder->get()
#4 D:\phpstudy_pro\yf1\dayrui\Core\Controllers\Admin\Login.php(38): Phpcmf\Model\Auth->login('admin', 'admin')
#5 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(910): Phpcmf\Controllers\Admin\Login->index()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(398): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Admin\Login))
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(306): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 08:58:13 --> Access denied for user '****'@'localhost' to database 'yf'
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(377): CodeIgniter\Database\MySQLi\Connection->connect(false)
#1 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseConnection.php(643): CodeIgniter\Database\BaseConnection->initialize()
#2 D:\phpstudy_pro\yf1\dayrui\System\Database\BaseBuilder.php(1819): CodeIgniter\Database\BaseConnection->query('SELECT `passwor...', Array, false)
#3 D:\phpstudy_pro\yf1\dayrui\Fcms\Model\Auth.php(122): CodeIgniter\Database\BaseBuilder->get()
#4 D:\phpstudy_pro\yf1\dayrui\Core\Controllers\Admin\Login.php(38): Phpcmf\Model\Auth->login('admin', 'admin')
#5 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(910): Phpcmf\Controllers\Admin\Login->index()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(398): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Admin\Login))
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(306): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:30 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:32 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:33 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:36 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:37 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php?c=login&m=index&go=http%253A%252F%252Fwww.yf1.com%252Fadmin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:41 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
CRITICAL - 2020-04-23 09:02:44 --> Cache unable to write to {0}
# http://www.yf1.com/admin.php
#
#0 D:\phpstudy_pro\yf1\dayrui\System\Cache\Handlers\FileHandler.php(78): CodeIgniter\Cache\Exceptions\CacheException::forUnableToWrite('D:\\phpstudy_pro...')
#1 D:\phpstudy_pro\yf1\dayrui\System\Cache\CacheFactory.php(84): CodeIgniter\Cache\Handlers\FileHandler->__construct(Object(Config\Cache))
#2 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(123): CodeIgniter\Cache\CacheFactory::getHandler(Object(Config\Cache))
#3 D:\phpstudy_pro\yf1\dayrui\System\Config\BaseService.php(123): CodeIgniter\Config\Services::cache(Object(Config\Cache), false)
#4 D:\phpstudy_pro\yf1\dayrui\System\Config\Services.php(115): CodeIgniter\Config\BaseService::getSharedInstance('cache', NULL)
#5 D:\phpstudy_pro\yf1\dayrui\System\Common.php(101): CodeIgniter\Config\Services::cache()
#6 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(619): cache()
#7 D:\phpstudy_pro\yf1\dayrui\System\CodeIgniter.php(292): CodeIgniter\CodeIgniter->displayCache(Object(Config\Cache))
#8 D:\phpstudy_pro\yf1\dayrui\Fcms\Init.php(330): CodeIgniter\CodeIgniter->run()
#9 D:\phpstudy_pro\yf1\index.php(47): require('D:\\phpstudy_pro...')
#10 D:\phpstudy_pro\yf1\admin.php(9): require('D:\\phpstudy_pro...')
#11 {main}
配置問題錯(cuò)誤
參考文檔:《數(shù)據(jù)庫配置文件》
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
看下數(shù)據(jù)庫配置文件是: