当前位置:网站首页>mysql8安装,navicat安装,sqli-labs搭建
mysql8安装,navicat安装,sqli-labs搭建
2022-06-11 17:43:00 【鲨鱼饿死了】
安装MYSQL8
mysql下载地址 https://dev.mysql.com/downloads/mysql/
安装参考博文
解压mysql安装包;
自建data文件夹
和mysql.ini文件
mysql.ini文件内容填充为:注意两个斜杠
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录(你自己安装mysql的目录)
basedir=D:\\mysql\\mysql-8.0.26-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\\mysql\\mysql-8.0.26-winx64\\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
配置环境变量
以管理员身份打开cmd
生成data文件 ↓
mysqld --initialize-insecure --user=mysql
安装
mysqld -install
启动服务
net start MySQL
启动失败:计算机管理—服务—手动启动mysql服务,依然失败
服务的路径与安装的路径不一致,之前安装过mysql后卸载重装容易出现这样的问题
启动MySQL失败 “找不到系统文件的”可能是之前安装过,没删除干净,修改注册表信息。HKEY_LOCAL_MACHINE ->SYSTEM -> CurrentControlSet -> services ->MySQL,修改ImagePath的路径为Mysql安装路径
参考博文
问题解决后,启动成功
登录:mysql刚按装好是默认没有密码的,直接回车即可登录
mysql -u root -p
练习下mysql语法
参考博文
select version(),current_date();
修改mysql8密码
记不太清了,好像是这个方法解决的。要重启服务几遍
参考博文
alter user ‘用户名’@‘主机范围’ identified by ‘密码’

安装navicat15
参考博文
管理员身份运行
安装:下一步
把 Navicat Keygen Patch v5.6.0 DFoX.exe文件 复制到安装路径下,然后以管理员身份运行
点击patch
点击确定
点开navicat,点击注册
点击generate
点击手动激活
复制
sqli-labs搭建
参考博文
博主下载的是PHP study2018,在我电脑上总是提示连接不上数据库
也不知道是同时运行了系统mysql和PHP study的mysql有关,还是和PHP study2018版本有关
折腾一番后,关闭系统MySQL,换了2016,就可以了
PHP study下载地址https://www.xp.cn/download.html
sqli-labs 下载地址https://github.com/Audi-1/sqli-labs
安装好phpstudy后,我没有按照博主的思路去 其他选项菜单—Mysql工具—修改密码
而是通过 其他选项菜单—Mysql工具—mysql命令行
登录mysql
mysql -u root -p
输入密码的时候,输入root,就进去了
那密码应该就是root
sqli-labs 下载之后放在phpStudy\PHPTutorial\WWW目录中。
打开sqli-lab-master目录下sql-connection中的db-creds.inc文件,将$dpass修改成root。
运行phpstudy
在浏览器输入地址访问:http://localhost/sqli-labs-master

然后就能闯关了 ~
边栏推荐
- 6-1 需要多少单词可以组成一句话?
- Hands on deep learning - multiple input and output channels in the convolution layer
- 6-7 file read / write operation
- 开源项目那么多,这次带你了解个版本的区别,明白alpha版、beta版、rc版是什么意思
- Expérience initiale du moteur de segmentation de l'araignée mariadb
- Intelligent overall legend, legend of wiring, security, radio conference, television, building, fire protection and electrical diagram [transferred from wechat official account weak current classroom]
- Speed adjustment of tidb DDL
- Port planning and APJ
- av_read_frame返回值为-5 Input/output error
- 测试基础之:黑盒测试
猜你喜欢

Initial experience of MariaDB spider sharding engine

光纤熔接知识汇总【转载自微信公众号弱电智能化工程2018】

聚类方法汇总

Automated testing selenium

Chapter II relational database

mariadb spider分片引擎初体验

智能化整体图例,布线、安防、广播会议、电视、楼宇、消防、电气图的图例【转自微信公众号弱电课堂】
![[MySQL] detailed explanation of redo log, undo log and binlog (4)](/img/67/6e646040c1b941c270b3efff74e94d.png)
[MySQL] detailed explanation of redo log, undo log and binlog (4)

删除链表的倒数第N个节点---2022/02/22

【线上问题】Timeout waiting for connection from pool 问题排查
随机推荐
About element location and size
6-5 count the number of words (file) (*)
【先收藏,早晚用得到】100个Flink高频面试题系列(一)
6-3 读文章(*)
Merge K ascending linked lists ---2022/02/26
Why is the UDP stream set to 1316 bytes
Online excel file parsing and conversion to JSON format
sql server中关于FORCESCAN的使用以及注意项
Valid parentheses ---2022/02/23
Don't you understand the design and principle of thread pool? Break it up and crush it. I'll teach you how to design the thread pool
ffmpeg硬编解码 Inter QSV
Leetcode力扣刷题
【先收藏,早晚用得到】100个Flink高频面试题系列(二)
tidb-数据误删恢复的几种方式
Chorus translation
GB gb28181 protocol video platform easygbs adds or deletes offline channels
How to simplify a lot of if... Elif... Else code?
CLP information -5 keywords to see the development trend of the financial industry in 2022
自动化测试-Selenium
6-3 batch sum (*)