【报错】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

image.png

解决方案:

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

使用小皮的话,默认root

image.png

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

点击setup

image.png

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

image.png

再次打开靶场关卡

http://localhost/sqli-labs-php7-master/Less-1/

成功

image.png

目录
相关文章
|
关系型数据库 MySQL 索引
【Database】排错:Mysql5.6报错Specified key was too long; max key length is 767 bytes
在某个实验系统部署的过程中,出现mysql报错,是特定版本的处理错误,在查阅官网文档时得到解决方案
1331 0
【Database】排错:Mysql5.6报错Specified key was too long; max key length is 767 bytes
|
9月前
|
关系型数据库 MySQL 数据库
【报错】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
615 0
|
10月前
|
XML 关系型数据库 MySQL
已解决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
143 0
|
关系型数据库 MySQL
MySQL8.0.27安装过程中卡在Initializing Database中并报错
MySQL8.0.27安装过程中卡在Initializing Database中并报错
1243 0
MySQL8.0.27安装过程中卡在Initializing Database中并报错
|
Java 关系型数据库 MySQL
报错:java.sql.SQLNonTransientConnectionException: Could not create connection to database server
报错:java.sql.SQLNonTransientConnectionException: Could not create connection to database server
1652 0
报错:java.sql.SQLNonTransientConnectionException: Could not create connection to database server
|
关系型数据库 数据库
|
测试技术 BI 数据库
Crystal Reports拉报表报错:Error detected by database DLL
问题描述: 最近在使用Crystal Reports打印报表时,提示错误信息:“Error detected by database DLL.” 如下图: 经查找,是因为数据库名称不同造成的; 用户的测试环境使用的库名称为ClaimsReport; 我们本地使用的库名称为Claims;   解决方案: 打开报表工具Crystal Reports 8.5,进入Database->Set Location界面,如下图:   把红框中数据库名称去掉,然后点击按钮【Done】即可。
1375 0

热门文章

最新文章