Find solutions from the following areas
1 View mysql port
show global variables like 'port'; see the port is not 3306
2 Check the user whether to allow remote login
use mysql;
select user,host from user;
Return results or to view the specified user is locahost%, it must be allowed to connect remotely%
% If not already root execute the following command as an example the user name root password 123
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION;
flush privileges;
3 View 3306 port is not open
1 View command
netstat -talnp
2 open 3306 port command
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
3 If the above does not work, close firewalld
systemctl stop firewalld