当前位置:网站首页>mysql远程连接
mysql远程连接
2022-06-29 19:18:00 【盛世如恋】

[[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)
连接成功
边栏推荐
猜你喜欢

Why is informatization ≠ digitalization? Finally someone made it clear

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

Flutter 调用百度地图APP实现位置搜索、路线规划

揭秘!付费会员制下的那些小心机!

Win11系统小组件打不开?Win11系统小组件无法打开解决方法

How is the combination of convolution and transformer optimal?

75.二叉搜索树额最近公共祖先
![[笔记]再笔记--边干边学Verilog HDL –008](/img/7f/0ca73446247455ac4d8f9667083a87.png)
[笔记]再笔记--边干边学Verilog HDL –008

虎符限币种提现 用户曲线出金即亏损

Exploration and practice of NLP problem modeling scheme
随机推荐
云上未来,数智导航:阿里云研究院报告合集
元素等待机制
php实现 提取不重复的整数(编程题目能够最快的熟悉函数)
习题8 #第8章 Verilog有限状态机设计-4 #Verilog #Quartus #modelsim
3-3 host discovery - layer 4 discovery
PHP implementation of sorting two-dimensional arrays by specified key names
4-2 port banner information acquisition
STM32CubeMX 学习(6)外部中断实验
With these four security testing tools, software security testing can be said so easy!
深度好文 | YOLOv5+DeepSORT多目标跟踪深入解读与测试(含源码)
After CDN is added to the website, the Font Icon reports an error access control allow origin
3-2主机发现-三层发现
IP error problem of PHP laravel using AWS load balancer
第三方工具與框架集成
The sales volume could not catch up with the speed of taking money. Weima went to Hong Kong for emergency rescue
75. nearest common ancestor of binary search tree
AI scene Storage Optimization: yunzhisheng supercomputing platform storage practice based on juicefs
【笔记】再笔记--边干边学Verilog HDL – 014
Flutter 2.0 FocusScope.of(context).requestFocus(FocusNode()) 不生效的问题
docker compose 部署Flask项目并构建redis服务