当前位置:网站首页>mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
2022-07-28 20:46:00 【5xp_2001】
mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题
提示意思是不能用grant创建用户,mysql8.0以前的版本可以使用grant在授权的时候隐式的创建用户,8.0以后已经不支持,所以必须先创建用户,然后再授权,命令如下:
mysql> create user 'root'@'xx.xx.xx.xx' identified by 'xxxxxxxxx';
Query OK, 0 rows affected (0.05 sec)
mysql> grant all privileges on *.* to 'root'@'xxxxx.xx.xx.xx';
Query OK, 0 rows affected (0.02 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)
边栏推荐
- array_diff_assoc 元素是数组时不比较数组值的办法
- HCIP(10)
- 【CVPR 2021】Cylinder3D:用于LiDAR点云分割的圆柱体非对称3D卷积网络
- Which is the file transfer command in the basic services of the Internet
- Clearing of applet component timer
- Written examination summary record
- Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
- SQL injection less42 (post stack injection)
- 2021数学建模B组练习
- Lin Xiaobin, head of Tencent cloud database, borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true
猜你喜欢
随机推荐
[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation
ssh 免密码登录
Written examination summary record
Hcip experiment (15)
[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints
The person in charge of Tencent cloud database borrowed 100 million yuan to speculate in stocks? Insider: the amount is not true
[CS231N]Lecture_2:Image Classification pipelin
Which is the file transfer command in the basic services of the Internet
Sword finger offer II 058. schedule (medium design segment tree treemap ordered set)
Lotus 1.16.0 extend sector expiration time
普源示波器实际的使用效果怎么样
Ordinary practice of JS DOM programming
什么是时间复杂度
Day3 classification management of Ruiji takeout project
软考网络工程师
纪念一下第一次写的线段树了喽(对应洛谷3372)
What does GPRS network mean
Basic introduction of Rockwell AB PLC rslogix digital quantity IO module
2021 mathematical modeling group B code
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)







![[Ruiji takeout project]day4 - dish management](/img/2a/2d9deb7a583aa37b38a67ef2c74ee7.png)

