当前位置:网站首页>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"
边栏推荐
- 这种零件该怎么编程加工?
- Summary of system stability construction practice
- On which platform is it safer to buy Treasury reverse repo?
- Four solutions to cross domain problems
- M - smooth engineering continuation (minimum spanning tree)
- Web technology sharing | whiteboard toolbar encapsulation of Web
- Review 2021, embrace change and live up to Shaohua
- K - or unblocked project (minimum spanning tree)
- 001 basic knowledge (unfinished)
- (Niuke) BFS
猜你喜欢
The crystal ball "data insight" was officially launched: insight into the change of consumption trend and the details of interactive experience
FoxPro and I
Summary of system stability construction practice
Anyrtc implements application scenarios based on webrtc
Chapter 2 installation and use of vscode editor
Advanced functions of ES6 operation array map (), filter (), reduce()
How should we understand the variability of architecture design?
How does sd-rtn ensure the high availability of RTE services after infrastructure failure
CCF image rotation (Full Score code + problem solving idea) 201503-01
Rte2021 review of the practice and the way of AI OPS landing
随机推荐
It's so brain - burning that no wonder programmers lose their hair
1030 travel plan (30 points)
4.1 print function
Working principle and fault treatment of cutting cylinder in CNC machining center
H - Arctic network (minimum spanning tree)
Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
How many questions can you answer for the interview of Mechanical Engineer?
FoxPro and I
How should we understand the variability of architecture design?
N - Is There A Second Way Left? (minimum spanning tree, Kruskal)
G - navigation nightare
1130: find the first character that appears only once
return statement
Xiao Sha's pain (thinking problem)
M - smooth engineering continuation (minimum spanning tree)
B. Moamen and k-subarrays (codeforce+ binary search)
Matlab two-dimensional array example (extract data)
A little idea about big experiment data
Anyrtc implements application scenarios based on webrtc
Solve the problem that codeblocks20.03 on win11 cannot run for the first time