当前位置:网站首页>windows下mysql忘记密码登录,并创建用户
windows下mysql忘记密码登录,并创建用户
2022-07-31 05:18:00 【weixin_39945506】
忘记密码登录
1、修改my.ini文件
查找mysqld,在该项下添加skip-grant-tables
2、登录
用windows+r后输入cmd进入到命令窗口,在进入到mysql的bin目录下用mysql -uroot -p登录,会提示输入密码,直接回车就可以
创建用户,赋予权限
1、执行创建用户命令:CREATE USER ‘username’@‘host’ IDENTIFIED BY ‘password’;会出现如图中的错误
需要执行这个命令:flush privileges,之后再重新执行如上命令
2、赋予权限:GRANT all ON . TO ‘username’@‘host’;(赋予 username 在所有主机的所有权限,但不包含给其他账号赋予权限的权限)
删除用户
1、命令:DROP USER ‘username’@‘host’;
边栏推荐
- 自己设置的私密文件,在哪找
- Software Testing Interview Questions 2021
- 会话和饼干,令牌
- Data Preprocessing, Feature Engineering, and Feature Learning - Excerpt
- 解决background-size:cover时图片铺满但显示不完整?
- Cholesterol-PEG-Azide CLS-PEG-N3 Cholesterol-PEG-Azide MW:3400
- 虚拟机查看端口号进程
- Redis-Hash
- Cholesterol-PEG-Thiol CLS-PEG-SH Cholesterol-Polyethylene Glycol-Sulfhydryl
- 在 AWS 上从零开始设置 Incredibuild 构建系统
猜你喜欢

box-shadow related properties

DSPE-PEG-Thiol DSPE-PEG-SH 磷脂-聚乙二醇-巯基脂质体制备用

IDEA概述和安装及调试

Cholesterol-PEG-Amine CLS-PEG-NH2 Cholesterol-Polyethylene Glycol-Amino Research Use

Fluorescein-PEG-DSPE Phospholipid-Polyethylene Glycol-Fluorescein Fluorescent Phospholipid PEG Derivatives

力扣.两数之和/四数相加||

变更管理与 DevOps —— 二者同时进行吗?

Image binarization processing of opencv

国际站卖家大促攻略,只需要做好这几件事

Pytorch study notes 13 - Basic_RNN
随机推荐
钉钉H5微应用免登鉴权
浏览器中的画中画(Picture-in-Picture)API
Tensorflow steps on the pit while using it
Pytorch Daily Practice - Predicting Surviving Passengers on the Titanic
mobaxterm 编码问题解决
Cholesterol-PEG-Azide CLS-PEG-N3 Cholesterol-PEG-Azide MW:3400
CLS-PEG-FITC Fluorescein-PEG-CLS 胆固醇-聚乙二醇-荧光素简介
box-shadow related properties
Cholesterol-PEG-Amine CLS-PEG-NH2 胆固醇-聚乙二醇-氨基科研用
力扣刷题之排序链表
DSPE-PEG-Thiol DSPE-PEG-SH phospholipid-polyethylene glycol-thiol liposome for later use
Introduction to CLS-PEG-FITC Fluorescein-PEG-CLS Cholesterol-PEG-Fluorescein
实现离线文件推流成rtsp 2
这些数组技巧,我爱了
Rejection sampling note
【Rhapsody学习笔记】4:Relations
英语学习笔记
学习JDBC之获取数据库连接的方式
Log jar package conflict, and its solution
力扣.字母异位词分组