windows mysql8 常用设置

select user,host,plugin from user;

alter user 'root'@'localhost' identified with mysql_native_password by 'master$1234';

2.允许任何IP远程连接

update user set Host='%' where User='root'; 

5.进行指令刷新

flush privileges; 

6、重启mysql

service mysql restart

 

 

一、判断Ubuntu是否开启防火墙

sudo ufw status

开放防火墙3306端口

sudo ufw allow 3306

二、查看3306端口是否打开

三、修改mysql配置文件,将bind-address = 127.0.0.1注释,开放所有连接

sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf 

重启ubuntu,再次查看3306端口状态,同第二步

四、通过telnet尝试连接mysql

telnet your-remote-ip-address 3306

posted on   zyp_java_net  阅读(27)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek “源神”启动!「GitHub 热点速览」
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
历史上的今天:
2021-12-21 C# xml 转 list 对象
2021-12-21 net 6 用HttpClient发送XML PostAsync
2021-12-21 C# 中如何输出双引号(转义字符的使用)

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示