当前位置:网站首页>MySQL crée un utilisateur de connexion à distance et autorise
MySQL crée un utilisateur de connexion à distance et autorise
2022-04-22 01:20:00 【QQ 45858458】
MySQL Créer un utilisateur de connexion à distance et autoriser
AvecrootConnectez - vous à la base de données pour la visualisationuserSituation du tableau
mysql> select Host,User from mysql.user;
+-----------+---------------+
| Host | User |
+-----------+---------------+
| localhost | java_test |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | root |
+-----------+---------------+
4 rows in set (0.00 sec)
C'est tout.4- Oui.mysqlNuméro de compte,HostLes colonnes peuvent être vues,Ces comptes ne prennent en charge que les connexions natives au serveur,Maintenant, créez un utilisateur distant;
mysql> create user test identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> select Host,User from mysql.user;
+-----------+---------------+
| Host | User |
+-----------+---------------+
| % | test |
| localhost | java_test |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | root |
+-----------+---------------+
5 rows in set (0.00 sec)
Création terminée, Il n'y a toujours pas de permission pour se connecter au programme , Tout à l'heure, notre connaissance a créé l'utilisateur , Aucun droit n'a été attribué à cet utilisateur
mysql> grant all privileges on *.* to 'test'@'%' identified by '123456' with grant option;
Query OK, 0 rows affected, 1 warning (0.00 sec)
all Le représentant accepte toutes les actions ,Par exemple, select,insert,delete…; . Représente toutes les tables sous toutes les bibliothèques ;% Autoriser la connexion depuis n'importe où au nom de cet utilisateur ;Pour la période de sécurité,C'est% Peut être remplacé par ipAdresse;
Et rafraîchirmysql Tableau des droits des utilisateurs
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
版权声明
本文为[QQ 45858458]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220055517634.html
边栏推荐
- MySQL advanced common functions
- The middle order traversal of binary tree
- 安装包签名检测
- On software development skills of swen2003
- sql server 2008使用over(PARTITION BY..ORDER BY.. ) 显示有语法错误
- China venture capital, winter is coming
- Muduo project introduction
- Probe architecture of open source project kindling based on ebpf Technology
- 精品:千字长文教你使用字节跳动的火山引擎ImageX
- GridData 布局说明
猜你喜欢

PR如何调整导出的数据速率和总比特率

Tencent T3 Daniel teaches you hand in hand, and 90% of people say good after reading it

精彩回顾 | DEEPNOVA x Iceberg Meetup Online《基于Iceberg打造实时数据湖》

Huawei cloud hosting experience: your software storage expert

How can devices of different brands be compatible and interconnected? Yiwen teaches you to understand

. net core enterprise wechat web page authorization login

在setTimeout里设置倒数5秒计时的方法

【Pranet】论文及代码解读(ResNet部分)——jialiang nie

No more simple intention lock

PraNet训练文件train.py详解——shaoshuai
随机推荐
OBS录制的avi能够被imageJ打开吗?
No more simple intention lock
Principle and application of closure
05 Lua 控制结构
腾讯T3团队整理,被逼无奈开始狂啃底层技术
Simple understanding of variable structure assignment
Huawei has launched the new BMW 7 Series in the application market to create a luxury peak smart travel experience
Vnpy chapter of quantitative trading - synchronization module avoids self transaction risk and adds synchronization completion prompt
Kotlin - Introduction to higher order functions
R language ggplot2 visualizes scatter plot, highlights the specified data points based on combination rules, sets the size and color of data points
From the perspective of source code, what are the ways to create thread pool
MySQL创建远程登陆用户并授权
不同品牌设备如何兼容实现互联?一文教你看懂
观测云登陆阿里云计算巢,共建ISV新生态
腾讯团队实力打造flutter入门教程,1-3年Android开发工程师面试经验分享
算法面试经典100题,冲刺7天拿下Offer
How can zhiting connect Huawei smart speakers?
Servlet
华为应用市场登陆全新BMW 7系,打造豪华巅峰智慧出行体验
Muduo project introduction