当前位置:网站首页>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)
连接成功
边栏推荐
- NLP 类问题建模方案探索实践
- Various API methods of selenium
- 网站加了CDN后,字体图标报错Access-Control-Allow-Origin
- 建立自己的网站(12)
- With these four security testing tools, software security testing can be said so easy!
- JS judge whether the array key name exists
- Page object and data driven test
- 企业数字化转型的点、线、面、体!
- 压测并发数的确定
- Sophomore majoring in software engineering, the previous learning situation is not very good. How to plan the follow-up development route
猜你喜欢

Win11策略服务被禁用怎么办?Win11策略服务被禁用的解决方法

电脑ssd硬盘怎么安装使用

75.二叉搜索树额最近公共祖先

MariaDB的安装与配置

Selenium WebDriver的高级特性

NLP 类问题建模方案探索实践

Solution of portable emergency communication system for flood control and rescue

Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!

Installation and configuration of MariaDB

Sophomore majoring in software engineering, the previous learning situation is not very good. How to plan the follow-up development route
随机推荐
【历史上的今天】6 月 29 日:SGI 和 MIPS 合并;微软收购 PowerPoint 开发商;新闻集团出售 Myspace
物理验证LVS流程和技术点滴(上)
Win11 system component cannot be opened? Win11 system widget cannot be opened solution
终于,进亚马逊了~
正则表达式系列之手机号码正则
【️爬虫必备->Scrapy框架从黑铁到王者️】初篇——万字博文详解(建议收藏)
全局变量和静态变量的初始化
习题8 #第8章 Verilog有限状态机设计-4 #Verilog #Quartus #modelsim
Element waiting mechanism
C#_摄像头图像转换为Bitmap格式及绘制十字线
Seven cattle image access parameters (thumbnails are small in size to avoid wasting traffic)
The sales volume could not catch up with the speed of taking money. Weima went to Hong Kong for emergency rescue
技术保证质量,软件测试的这些测试方法你都掌握了吗?
76.二叉树的最近公共祖先
第三方工具與框架集成
C语言数组专题训练
STM32CubeMX 学习(6)外部中断实验
go: 如何编写一个正确的udp服务端
4-1端口扫描技术
php实现 提取不重复的整数(编程题目能够最快的熟悉函数)