安装好, swoole重启过了, 根目录env也配置了, 怎么弄都不生效 还在用root不带密码访问,
哪里那个操作遗漏了呢?
[2026-06-16T17:17:58+08:00][error] [10501]SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
#0 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/connector/Mysql.php(66): think\db\PDOConnection->getPDOStatement('SHOW FULL COLUM...')
#1 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/PDOConnection.php(422): think\db\connector\Mysql->getFields('`system_config_...')
#2 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/PDOConnection.php(362): think\db\PDOConnection->getTableFieldsInfo('system_config_v...')
#3 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/PDOConnection.php(409): think\db\PDOConnection->getSchemaInfo('system_config_v...')
#4 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/PDOConnection.php(493): think\db\PDOConnection->getTableInfo('system_config_v...', 'type')
#5 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php(58): think\db\PDOConnection->getFieldsType('system_config_v...')
#6 /www/wwwroot/backend/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php(69): think\db\Query->getFieldsType()
#7 [internal function]: think\db\Query->getFieldType('create_time')
#8 /www/wwwroot/backend/vendor/topthink/think-orm/src/Model.php(1049): call_user_func_array(Array, Array)
#9 /www/wwwroot/backend/vendor/topthink/think-orm/src/model/concern/TimeStamp.php(73): think\Model->__call('getFieldType', Array)
#10 /www/wwwroot/backend/vendor/topthink/think-orm/src/model/concern/TimeStamp.php(54): think\Model->checkTimeFieldType(true)
#11 /www/wwwroot/backend/vendor/topthink/framework/src/think/service/ModelService.php(35): think\Model->isAutoWriteTimestamp(true)
#12 [internal function]: think\service\ModelService->think\service\{closure}(Object(app\common\model\system\config\SystemConfigValue))
#13 /www/wwwroot/backend/vendor/topthink/think-orm/src/Model.php(242): call_user_func(Object(Closure), Object(app\common\model\system\config\SystemConfigValue))
#14 /www/wwwroot/backend/app/common/model/BaseModel.php(52): think\Model->__construct(Array)
#15 /www/wwwroot/backend/app/common/model/BaseModel.php(60): app\common\model\BaseModel->__construct()
#16 /www/wwwroot/backend/app/common/dao/BaseDao.php(81): app\common\model\BaseModel::getInstance()
#17 [internal function]: app\common\dao\BaseDao->query(Array)
#18 /www/wwwroot/backend/app/common/repositories/BaseRepository.php(33): call_user_func_array(Array, Array)
#19 /www/wwwroot/backend/app/common/repositories/system/config/ConfigValueRepository.php(228): app\common\repositories\BaseRepository->__call('query', Array)
#20 /www/wwwroot/backend/app/common/repositories/system/config/ConfigValueRepository.php(308): app\common\repositories\system\config\ConfigValueRepository->syncConfig()
#21 /www/wwwroot/backend/app/common.php(470): app\common\repositories\system\config\ConfigValueRepository->getConfig(0, 'site_open')
#22 /www/wwwroot/backend/app/common.php(401): merchantConfig(0, 'site_open')
#23 /www/wwwroot/backend/app/common/middleware/CheckSiteOpenMiddleware.php(26): systemConfig('site_open')
#24 [internal function]: app\common\middleware\CheckSiteOpenMiddleware->handle(Object(app\Request), Object(Closure))
#25 /www/wwwroot/backend/vendor/topthink/framework/src/think/Middleware.php(142): call_user_func(Array, Object(app\Request), Object(Closure))
#26 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think\{closure}(Object(app\Request), Object(Closure))
#27 /www/wwwroot/backend/app/common/middleware/BaseMiddleware.php(50): think\Pipeline->think\{closure}(Object(app\Request))
#28 [internal function]: app\common\middleware\BaseMiddleware->handle(Object(app\Request), Object(Closure))
#29 /www/wwwroot/backend/vendor/topthink/framework/src/think/Middleware.php(142): call_user_func(Array, Object(app\Request), Object(Closure))
#30 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think\{closure}(Object(app\Request), Object(Closure))
#31 /www/wwwroot/backend/app/common/middleware/BaseMiddleware.php(50): think\Pipeline->think\{closure}(Object(app\Request))
#32 [internal function]: app\common\middleware\BaseMiddleware->handle(Object(app\Request), Object(Closure))
#33 /www/wwwroot/backend/vendor/topthink/framework/src/think/Middleware.php(142): call_user_func(Array, Object(app\Request), Object(Closure))
#34 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think\{closure}(Object(app\Request), Object(Closure))
#35 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think\{closure}(Object(app\Request))
#36 /www/wwwroot/backend/vendor/topthink/framework/src/think/Route.php(773): think\Pipeline->then(Object(Closure))
#37 /www/wwwroot/backend/vendor/topthink/framework/src/think/Http.php(216): think\Route->dispatch(Object(app\Request), Object(Closure))
#38 /www/wwwroot/backend/vendor/topthink/think-swoole/src/Http.php(55): think\Http->dispatchToRoute(Object(app\Request))
#39 /www/wwwroot/backend/vendor/topthink/framework/src/think/Http.php(206): think\swoole\Http->dispatchToRoute(Object(app\Request))
#40 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(59): think\Http->think\{closure}(Object(app\Request))
#41 /www/wwwroot/backend/vendor/topthink/think-swoole/src/middleware/ResetVarDumper.php(28): think\Pipeline->think\{closure}(Object(app\Request))
#42 [internal function]: think\swoole\middleware\ResetVarDumper->handle(Object(app\Request), Object(Closure))
#43 /www/wwwroot/backend/vendor/topthink/framework/src/think/Middleware.php(142): call_user_func(Array, Object(app\Request), Object(Closure))
#44 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think\{closure}(Object(app\Request), Object(Closure))
#45 /www/wwwroot/backend/vendor/topthink/think-trace/src/TraceDebug.php(71): think\Pipeline->think\{closure}(Object(app\Request))
#46 [internal function]: think\trace\TraceDebug->handle(Object(app\Request), Object(Closure))
#47 /www/wwwroot/backend/vendor/topthink/framework/src/think/Middleware.php(142): call_user_func(Array, Object(app\Request), Object(Closure))
#48 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think\{closure}(Object(app\Request), Object(Closure))
#49 /www/wwwroot/backend/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think\{closure}(Object(app\Request))
#50 /www/wwwroot/backend/vendor/topthink/framework/src/think/Http.php(207): think\Pipeline->then(Object(Closure))
#51 /www/wwwroot/backend/vendor/topthink/framework/src/think/Http.php(170): think\Http->runWithRequest(Object(app\Request))
#52 /www/wwwroot/backend/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(131): think\Http->run(Object(app\Request))
#53 /www/wwwroot/backend/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(115): think\swoole\Manager->handleRequest(Object(think\swoole\Http), Object(app\Request))
#54 /www/wwwroot/backend/vendor/topthink/framework/src/think/Container.php(293): think\swoole\Manager->think\swoole\concerns\{closure}(Object(think\swoole\Http), Object(think\Event), Object(think\swoole\App), Object(think\Middleware))
#55 /www/wwwroot/backend/vendor/topthink/framework/src/think/Container.php(357): think\Container->invokeFunction(Object(Closure), Array)
#56 /www/wwwroot/backend/vendor/topthink/think-swoole/src/Sandbox.php(86): think\Container->invoke(Object(Closure), Array)
#57 /www/wwwroot/backend/vendor/topthink/think-swoole/src/concerns/WithApplication.php(116): think\swoole\Sandbox->run(Object(Closure), NULL, false)
#58 /www/wwwroot/backend/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(123): think\swoole\Manager->runInSandbox(Object(Closure))
#59 {main}
【产品名称】:多商户系统 (PHP)
【产品版本】:例:v3.2
【部署方式】:linux/ubuntu
【部署环境】:线上环境
【php版本】:7.3
【Mysql版本】:5.7
【使用终端】: / 后台

