当前位置:网站首页>[MySQL learning notes 15] user management
[MySQL learning notes 15] user management
2022-06-21 17:26:00 【yqs_ two hundred and eighty-one million eight hundred and seven】
Query the user
use mysql;
select * from user;
You can see that there are four default users , among user Represents the user name ,host Indicates that this user can only be accessed by the current domain name , So domain name + Only the user name can uniquely identify a user
Create user
create use ‘ user name ’@‘ Host name ’ identified by ‘ password ’
Allow any host to access : Change the host name to % that will do
Change user password
alter user ‘ user name ’@‘ Host name ’ identified with encryption by ‘ password ’;
for example :
alter user ‘yqs’@‘localhost’ identified with mysql_native_password by ‘123456’;
Delete user
drop user ‘ user name ’@‘ Host name ’ ;
边栏推荐
- Generating test reports using the unittest framework
- rtmp webrtc 协议 openssl 等安装
- Starkrocks Lecture 2 basic operation (1)
- 【349期】面试官:如何优雅的自定义 ThreadPoolExecutor 线程池?
- Elegant request retry using guzzle Middleware
- Interface automatic encryption and decryption
- List set map in kotlin
- 进击的程序员,如何提升研发效能?|直播预告
- 牛客网:大数加法
- 使用PicGo-Core 和 阿里云 实现typora图片自动上传
猜你喜欢

Oracle中实现获取指定行内容——Rownum和Row_number()

垃圾回收器

Pytest-- generate test report

Niuke network: verify the IP address

Pytest框架

Research on symmetric TSP Based on MATLAB

阿里云服务器+宝塔面板+无域名部署web项目

The new razor component supports proxy connection to RDP, and jumpserver fortress v2.23.0 is released

很多軟件公司,其實都是“笑話”

Notice on the third national operation research / data, model and decision-making course teaching seminar in 2022
随机推荐
Previous installation records
Hairui technology completed the pre-A round of financing of tens of millions of yuan to build the first artificial intelligent distribution Internet of things in China
[ROS2 基础] Navigation2 导航系统介绍
集成底座方案演示说明
I do 3D restoration for the aircraft carrier: these three details are shocking
[从零开始学习FPGA编程-38]:进阶篇 -语法-函数与任务
Force deduction solution summary 1108-ip address invalidation
PowerPoint 教程,如何在 PowerPoint 中更改页面方向、幻灯片大小?
Oracle中实现获取指定行内容——Rownum和Row_number()
Postman基本操作
Alibaba cloud server + pagoda panel + no domain name deployment web project
Starkrocks Lecture 2 basic operation (1)
tinymce.init()浏览器兼容问题
The new razor component supports proxy connection to RDP, and jumpserver fortress v2.23.0 is released
Sequence traversal of binary tree
导数常用公式__不定积分常用公式
使用unittest框架生成测试报告
函数调用模型
【mysql学习笔记11】排序查询
rtmp webrtc 协议 openssl 等安装