当前位置:网站首页>【mysql学习笔记15】用户管理
【mysql学习笔记15】用户管理
2022-06-21 16:02:00 【yqs_281876918】
查询用户
use mysql;
select * from user;
可以看到有四个默认用户,其中user表示用户名,host表示只能由当前域名访问这个用户,所以域名+用户名才能唯一确定一个用户
创建用户
create use ‘用户名’@‘主机名’ identified by ‘密码’
允许任意主机访问:将主机名改成%即可
修改用户密码
alter user ‘用户名’@‘主机名’ identified with 加密方式 by ‘密码’;
例如:
alter user ‘yqs’@‘localhost’ identified with mysql_native_password by ‘123456’;
删除用户
drop user ‘用户名’@‘主机名’ ;
边栏推荐
- Set up your own website (11)
- Necessary for data analysis: 6 steps +5 types +2 analysis methods
- 为什么要做茶叶商城小程序app开发?
- 机器学习模型监控(Aporia)
- [理论]--接口测试
- Circular of the State Council on regulating the management of the rental of housing with common property rights (for Trial Implementation)
- 【349期】面试官:如何优雅的自定义 ThreadPoolExecutor 线程池?
- How to open an account for futures agricultural products? How much is the handling charge?
- Sword finger offer II 089 House theft / Sword finger offer II 090 Ring house theft
- [SQLite] solve unrecognized token:“‘“
猜你喜欢

Why do you want to develop tea mall applet app?

既不是研发顶尖高手,也不是销售大牛,为何偏偏获得 2 万 RMB 的首个涛思文化奖?

Unittest框架的测试日志

In 2021 database market, aerospike competes with top manufacturers

Reinforcement learning introductory project spinning up (1) installation

【Leetcode】297. 二叉树的序列化与反序列化 (困难)

海外new things | 软件开发商「Dynaboard」种子轮融资660万美元,开发低代码平台连接设计、产品和开发人员
![[ros2 basics] Introduction to navigation2 navigation system](/img/7f/ad6af972460d7a78fb28d9b4c24477.png)
[ros2 basics] Introduction to navigation2 navigation system

南京大学 静态软件分析(static program analyzes)-- introduction 学习笔记

撰写有效帮助文档的7大秘诀
随机推荐
qtcreator报错解决
Postman基本操作
第十六周总结
Design and implementation of face verification system for floating population management
机器学习模型监控(Aporia)
Test log of unittest framework
Yaml data driven demo
Qtcreator error reporting solution
云原生监控系统·夜莺近期新功能一览,解决多个生产痛点
力扣解法汇总1108-IP 地址无效化
Notice on the third national operation research / data, model and decision-making course teaching seminar in 2022
快速排序简单思路及程序
UDP和TCP的对比
PowerPoint tutorial, how to change page orientation and slide size in PowerPoint?
【Leetcode】297. Serialization and deserialization of binary tree (difficult)
建立自己的网站(11)
容器云是什么意思?与堡垒机有什么区别?
The release of autok3s v0.5.0 continues to be simple and friendly
【1108. IP 地址無效化】
如何判断DNS解析故障?如何解决DNS解析错误?