【报错】sqli-labs靶场搭建出现“Unable to connect to the database: security”

简介: 【报错】sqli-labs靶场搭建出现“Unable to connect to the database: security”

问题描述

搭建sqli-labs靶场时,在配置好PHP和mysql以及db-creds.inc配置文件后

初始界面可以运行,但点击关卡报错

image.png

提示连接不到数据库

Unable to connect to the database: security
AI 代码解读

image.png

解决方案:

1、数据库配置出错,先查看db-creds.inc配置文件中数据库密码是否正确

使用小皮的话,默认root

image.png

2、在靶场首页重新创建数据库

点击setup

image.png

然后出现该界面后,创建成功

image.png

再次打开靶场关卡

http://localhost/sqli-labs-php7-master/Less-1/
AI 代码解读

成功

image.png

目录
打赏
0
0
0
0
18
分享
相关文章
|
7月前
|
flywa报错Detected resolved migration not applied to database: 20221103.10000
flywa报错Detected resolved migration not applied to database: 20221103.10000
139 2
flywa报错java.sql.SQLSyntaxErrorException: Unknown database ‘flyway‘
flywa报错java.sql.SQLSyntaxErrorException: Unknown database ‘flyway‘
70 1
|
7月前
|
flywa报错Migration checksum mismatch for migration version 1.1 -> Applied to database : 1332862643 ->
flywa报错Migration checksum mismatch for migration version 1.1 -> Applied to database : 1332862643 ->
88 1
openvas报错Warning: Secinfo Database Missing SCAP and/or CERT database missing on OMP server.
openvas报错Warning: Secinfo Database Missing SCAP and/or CERT database missing on OMP server.
Connect to Autonomous Database Using Oracle Database Tools
Connect to Autonomous Database Using Oracle Database Tools
96 1
实时计算 Flink版操作报错合集之错误信息"ORA-65040: operation not allowed from within a pluggable database"如何解决
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
530 2
实时计算 Flink版操作报错合集之报错io.debezium.DebeziumException: The db history topic or its content is fully or partially missing. Please check database history topic configuration and re-execute the snapshot. 是什么原因
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
727 0
【报错】DVWA遇到Could not connect to the database service. Please check the config file. Database Error
【报错】DVWA遇到Could not connect to the database service. Please check the config file. Database Error
1557 0
已解决Failed to connect mysql database,please check username and password,or mysql is version8? true
已解决Failed to connect mysql database,please check username and password,or mysql is version8? true
486 0

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等