当前位置:网站首页>Mysql database - create user name & modify permission
Mysql database - create user name & modify permission
2022-06-30 15:17:00 【Alien-Hu】
List of articles
0. see mysql Version information for
1). Sign in mysql When , You can see mysql The specific version of

2).select version() see

1. by mysql Create a user name
# alien Is the user name 123456 It's a password
create user alien identified by '123456';
# Refresh the permissions
flush privileges;
# Check whether the account has been created
show grants for 'alien';
2. Authorization for account CRUD jurisdiction
# test_data.* representative test_data.* Permissions of all tables under this library
# *.* , All tables representing all libraries
# [email protected]'%' The user name can be represented in any ip Address access
# [email protected]'localhost' This represents the user name alien This database can only be accessed locally
# mysql8.0 ( You can use the following methods )
grant select,insert,update,delete on test_data.* to [email protected]'%' with grant option;
# Authorize all permissions of the user
grant all privileges on test_data.* to [email protected]'%' with grant option;
3.You have an error in your SQL syntax; check the manual that corresponds to year 'Identified by “xxxx” at line 1
# mysql 5.0 ( The old version ) Use the following method , The new version (8.0) And above use the above method
grant select,insert,update,delete on test_data.* to [email protected]'%' identified by "xxxxx"
边栏推荐
- Average and maximum values of MATLAB matrix
- 1105 spiral matrix (25 points)
- Database connection to company database denied
- Anyrtc implements application scenarios based on webrtc
- Xiao Sha's pain (thinking problem)
- Rte2021 review HDR technology product practice and exploration
- Talk about why I started technical writing
- Distributed -- openresty+lua+redis
- Don't fight for big companies
- CCF image rotation (Full Score code + problem solving idea) 201503-01
猜你喜欢

Talk about why I started technical writing

Explain service idempotency design in detail

Npumcm selection question 3 and acmc2020a

(Niuke) BFS

day02

How should we understand the variability of architecture design?

Kubernetes: a comprehensive analysis of container choreography

Is Domain Driven Design (DDD) reliable?

CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014

Tetris source code (color version)
随机推荐
It's so brain - burning that no wonder programmers lose their hair
Three types of technical debt that programmers often encounter: code, data, and architecture
Programming of left-hand trapezoidal thread
1134: Legal C identifier query
高精度CNC加工中心为什么会出现误差?这4个原因你要注意!
机械工程师面试的几个问题,你能答上来几个?
Help you accumulate audio and video knowledge, Agora developer's roaming guide officially set sail
Database connection to company database denied
Review 2021, embrace change and live up to Shaohua
Preliminary study on AI noise reduction evaluation system of sound network
Imitating freecodecamp to build a programming ability test platform
4.2 escape characters
1018 public bike Management (30 points)
Quick sort (C language)
C language \t usage
Steps for commissioning of vertical machining center
Matlab finds prime numbers within 100
1150 traveling salesman problem (25 points)
CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
Don't fight for big companies