小编想连接远程的mariaDB数据库弹出框出现了
Lost connection to MySQL server at ‘reading initial communication packet’, 的错
解决方法
- 1 开启端口3306
firewall-cmd --add-port=3306/tcp --premanent # 其中–premanent代表永久开启,重启机器不在关闭
- 2 数据库授权远程
MariaDB [(none)]> grant all on . to [email protected]’%’ identified by ‘root’;
如果提示没有选数据库,可以选 use mysql再执行即可。

连接即可。
相关文章:
-
2021-12-30
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-05-29
-
2022-12-23
-
2021-10-27
猜你喜欢
-
2021-07-24
-
2021-09-27
-
2022-12-23
-
2021-11-26
-
2022-12-23
-
2022-12-23
-
2021-08-07
相关资源
-
下载
2023-01-29
-
下载
2022-12-24
-
下载
2023-02-16