vim /etc/mysql/my.cnf bind-address = 0.0.0.0 /etc/init.d/mysql restart mysql -uroot -p1234 # grant all privileges on *.* to root@'%' identified by '1234' with grant option;or #grant all privileges on *.* to root@'<HOST_IP>' identified by '1234' with…