宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Windows面板 > 求助

【已解答】Access denied for user 'ymcs'@'localhost' (using password: YES

发表在 Windows面板2022-7-26 11:18 [复制链接] 3 4148

各位大佬,有谁知道这个怎么解决吗??小白一个Access denied for user 'ymcs'@'localhost' (using password: YES)错误位置
FILE: /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Db/Driver/Mysqli.class.php  LINE: 45


TRACE
#0 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Db/Driver/Mysqli.class.php(45): E('Access denied f...')
#1 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Db.class.php(164): Think\Db\Driver\Mysqli->connect()
#2 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Db/Driver/Mysqli.class.php(76): Think\Db->initConnect(false)
#3 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Db/Driver/Mysqli.class.php(209): Think\Db\Driver\Mysqli->query('SHOW COLUMNS FR...')
#4 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Model.class.php(130): Think\Db\Driver\Mysqli->getFields('`zm_config`')
#5 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Model.class.php(118): Think\Model->flush()
#6 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Model.class.php(1298): Think\Model->_checkTableInfo()
#7 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, '', true)
#8 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Common/functions.php(553): Think\Model->__construct('config', '', '')
#9 /www/wwwroot/3x.laidianys.xyz/Application/Youni/Controller/PublicController.class.php(7): M('config')
#10 [internal function]: Youni\Controller\PublicController->login()
#11 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/App.class.php(162): ReflectionMethod->invoke(Object(Youni\Controller\PublicController))
#12 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/App.class.php(200): Think\App::exec()
#13 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#14 /www/wwwroot/3x.laidianys.xyz/ThinkPHP/ThinkPHP.php(96): Think\Think::start()
#15 /www/wwwroot/3x.laidianys.xyz/index.php(17): require('/www/wwwroot/3x...')
#16 {main}




ThinkPHP3.2.2 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]


使用道具 举报 只看该作者 回复
发表于 2022-7-26 11:57:10 | 显示全部楼层
您好,下面有几个排查方向:
1、排查您的'ymcs' 这个数据库帐号是否有localhost权限访问数据库
2、排查'ymcs'这个数据库帐号的密码是否正确
使用道具 举报 回复 支持 反对
发表于 2022-7-26 14:44:47 | 显示全部楼层
大炮运维V587 发表于 2022-7-26 11:57
您好,下面有几个排查方向:
1、排查您的'ymcs' 这个数据库帐号是否有localhost权限访问数据库
2、排查'ymc ...

请问怎么排查呢??我是直接上传的源码,数据库导入的文件进行创建的
使用道具 举报 回复 支持 反对
发表于 2022-7-26 15:53:24 | 显示全部楼层
宝塔用户_ieuwrh 发表于 2022-7-26 14:44
请问怎么排查呢??我是直接上传的源码,数据库导入的文件进行创建的

你使用这个帐号,在PHPmyadmin中可以登陆吗?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表