零,报错日志 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
相关推荐
人工干智能20 分钟前
科普:pandas 中的类 SQL语句:transaction.groupby(“card_id“)[‘purchase_day‘].diff()
数据库·sql·pandas
淼淼爱喝水2 小时前
SQL注入漏洞检测与修复
数据库·sql
wuchen10043 小时前
SQLite的外键SQL小总结
数据库·sql·sqlite
雷工笔记18 小时前
SQL语句解析:DESC LIMIT 1
数据库·sql
lzhdim19 小时前
SQL 入门 10:SQL 内置函数:数值、字符串与时间处理
前端·数据库·sql
Navicat中国20 小时前
北京理工大学推荐 Navicat | 高校教育行业应用案例
数据库·navicat·高校·教育版
隐于花海,等待花开20 小时前
为什么要避免 SELECT *
sql
格鸰爱童话1 天前
跟着AI学sql
数据库·sql
数厘1 天前
2.13 sql数据更新(UPDATE)
数据库·sql·oracle
℡終嚸♂6801 天前
SQL 注入与 ThinkPHP 漏洞技术讲义
数据库·sql