Pagoda mysql remote root cannot connect

1. First confirm whether the Pagoda 3306 port is open

Confirm whether port 3306 of Pagoda is open, if not, add and release port 3306
insert image description here

2. Open ip permission

(1) First click on the database and click on the root password to save it
(2) Enter the terminal and enter the command

# 进入终端连接到服务器
mysql -u root -p
# 输入刚才保存的密码
use mysql;
# 授权root用户对所有数据库在任何ip都可以进行操作,赋予密码123456
grant all on *.* to root@'%' identified by '123456' with grant option;
# 刷新数据库
flush privileges;

Guess you like

Origin blog.csdn.net/Ls66666Ls/article/details/131232921
Recommended