php中使用什么接口访问mysql
444
2022-10-08
部署sqlilab(部署英文)
将sqlilab从github下载到本地cd /var/clone html]# ls -altotal 8drwxr-xr-x. 3 root root 39 Nov 14 23:36 .drwxr-xr-x. 4 root root 33 Nov 14 23:36 ..-rw-r--r--. 1 root root 20 Nov 14 23:35 info.phpdrwxr-xr-x. 78 root root 4096 Nov 14 21:46 sqli-labs[root@zh html]# 根据 中的Install Instructions:Open the file "db-creds.inc" which is under sql-connections folder inside the sql-labs folder.Update your MYSQL database username and password.(default for Backtrack are used root:toor)并且通过访问下面的路径进一步设置:on the link setup/resetDB to create database, create tables and populate Data.
如果出现如下情况:SETTING UP THE DATABASE SCHEMA AND POPULATING DATA IN TABLES:
[*]...................Could not connect to DB, check the creds in db-creds.inc: Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
管理员权限运行命令提示符,登陆MySQLmysql -u root -p
修改账户密码加密规则并更新用户密码Alter user 'root'@'localhost' identified by 'root@123' password expire never;Alter user 'root'@'localhost' identified with mysql_native_password by 'root@123';刷新权限并重置密码flush privileges;alter user 'root'@'localhost' identified by '111111';
接着就可以开始学习了
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~