CentOS服务器设置本地数据库可以被连接的命令行: mysql -u root -p; grant all privileges on *.* to 'root'@'%' identified by 'mysql password' with grant option; flush privileges; exit; service mysqld restart;
注意:云服务器的入站端口规则添加TCP:3306,宝塔面板安全端口放行3306