零,报错日志 2002-Can‘t connect to server on‘106.54.209.77‘(1006x)

零,报错日志 2002-Can't connect to server on'106.54.209.77'(1006x)

今天差点被这个报错给折磨疯掉

尝试一:对腾讯云服务器进行更改

尝试二:针对配置文件处理

step1

c++ 复制代码
//确保注释 /etc/mysql/mysql.conf.d/mysqld.cnf 下# bind-address          = 127.0.0.1#  mysqlx-bind-address  = 127.0.0.1

step2 重新加载服务器配置文件

c++ 复制代码
sudo systemctl daemon-reload

step3

c++ 复制代码
sudo systemctl restart mysql

尝试三:开启MySQL的远程访问权限

c++ 复制代码
USE mysql;
CREATE USER 'root'@'%' IDENTIFIED BY '密码';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
select user,host from user;

顺便对于vscode

顺便今天似乎vscode连接不上ubuntu,是因为乱处理上面的问题,给出如下方法

c++ 复制代码
sudo ufw enable
#Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
#Firewall is active and enabled on system startup
相关推荐
花间相见40 分钟前
【计算基础|MySQL18】Buffer Pool 与内存管理
后端·sql·mysql
geovindu2 小时前
Pivoting and Unpivoting Data in SQL using postgreSQL 18
大数据·数据库·数据仓库·sql·postgresql·数据库开发·数据库架构
RuoyiOffice4 小时前
达梦 DM8 + openGauss:RuoYi Office 的 MySQL 数据转换与导入实践
数据库·spring boot·python·sql·信创
喵了几个咪4 小时前
GoWind ShortPlay 拆解:Ent privacy/viewer 多租户隔离——从中间件到 SQL 的零信任链
sql·中间件·信任链
SelectDB技术团队5 小时前
ClickHouse SQL 好学吗?从 MySQL 迁移 Doris 的完整兼容验证
人工智能·sql·mysql·clickhouse·开源·apache doris·增量计算
夕除14 小时前
redis--IO 多路复用(select + poll)
数据库·sql
lzhdim18 小时前
100条常用SQL语句
数据库·sql·mysql·mybatis
泡海椒19 小时前
深度解析JQuick-SQL AST到逻辑计划转换机制|分布式SQL原理
数据库·分布式·sql
王仔小奶20 小时前
慢SQL治理与性能调优:DBA如何用Shell/Python提升运维效率?
python·sql·dba