当前位置:网站首页>MySQL remote connection
MySQL remote connection
2022-06-29 19:33:00 【Prosperity is like love】

[[email protected] ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 49
Server version: 8.0.26 Source distribution
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set host='%' where user='root';
Query OK, 1 row affected (0.05 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> select user,host from user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| root | % |
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
+------------------+-----------+
4 rows in set (0.00 sec)
Successful connection
边栏推荐
- 7.取消与关闭
- MBA-day19 如果p则q矛盾关系p 且非q
- 一小时构建示例场景 声网发布灵隼物联网云平台
- 誰在抖音文玩裏趁亂打劫?
- Physical verification LVS process and Technology (Part I)
- QC协议+华为FCP+三星AFC快充取电5V9V芯片FS2601应用
- ArrayList< Integer> Use = = to compare whether the values are equal, and -129=- 129 situation thinking
- MSYQL, redis, mongodb visual monitoring tool grafana
- Oracle11.2.0.4-Rac集群hang分析记录
- docker compose 部署Flask项目并构建redis服务
猜你喜欢

What if the win11 policy service is disabled? Solution to disabling win11 policy service

罗清启:高端家电已成红海?卡萨帝率先破局

【软件测试】01 -- 软件生命周期、软件开发模型

使用 OpenCV 的基于标记的增强现实

微信推出图片大爆炸功能;苹果自研 5G 芯片或已失败;微软解决导致 Edge 停止响应的 bug|极客头条

软件工程专业大二,之前的学习情况不太好该怎么规划后续发展路线

KDD 2022 | characterization alignment and uniformity are considered in collaborative filtering

Violent solution to the question of guessing the ranking

QC protocol + Huawei fcp+ Samsung AFC fast charging 5v9v chip fs2601 application

k线图经典图解(收藏版)
随机推荐
How is the combination of convolution and transformer optimal?
1404万!四川省人社厅关系型数据库及中间件软件系统升级采购招标!
jfinal中如何使用过滤器监控Druid监听SQL执行?
Shell bash script note: there must be no other irrelevant characters after the escape character \ at the end of a single line (multi line command)
测试方法学习
C语言数组专题训练
领先11%,华为云天筹AI求解器再度登顶国际权威榜单
AI场景存储优化:云知声超算平台基于 JuiceFS 的存储实践
正则表达式系列之手机号码正则
CAD Assistant - 3D模型格式转换利器
Why is informatization ≠ digitalization? Finally someone made it clear
【历史上的今天】6 月 29 日:SGI 和 MIPS 合并;微软收购 PowerPoint 开发商;新闻集团出售 Myspace
NLP 类问题建模方案探索实践
IP error problem of PHP laravel using AWS load balancer
Go: how to write a correct UDP server
Various API methods of selenium
虎符限币种提现 用户曲线出金即亏损
Automatically obtain local connection and network address modification
Wechat launched the picture big bang function; Apple's self-developed 5g chip may have failed; Microsoft solves the bug that causes edge to stop responding | geek headlines
JVM (3) class loading